From 66dd83e79cb8a6d4e9aa46c52867027cc023d78a Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 31 Oct 2023 13:06:09 +0100 Subject: [PATCH] OM-47: update migration --- msystems/migrations/0002_add_roles.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/msystems/migrations/0002_add_roles.py b/msystems/migrations/0002_add_roles.py index ec2bb90..53e5cb0 100644 --- a/msystems/migrations/0002_add_roles.py +++ b/msystems/migrations/0002_add_roles.py @@ -2,8 +2,6 @@ from django.db import migrations -from core.models import Role - ROLE_NAME_INSPECTOR = "Inspector" ROLE_NAME_EMPLOYER = "Employer" @@ -15,7 +13,7 @@ def _get_role(role_name, role_model): def _create_role(role_name, role_model): role = _get_role(role_name, role_model) if not role: - role = Role(name=role_name, is_blocked=False, is_system=0) + role = role_model(name=role_name, is_blocked=False, is_system=0) role.save()