Skip to content

Commit

Permalink
OM-47: update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Oct 31, 2023
1 parent 927b94e commit 66dd83e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions msystems/migrations/0002_add_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from django.db import migrations

from core.models import Role

ROLE_NAME_INSPECTOR = "Inspector"
ROLE_NAME_EMPLOYER = "Employer"

Expand All @@ -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()


Expand Down

0 comments on commit 66dd83e

Please sign in to comment.