Skip to content

Commit

Permalink
OM-47: fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Oct 30, 2023
1 parent 5c62ec8 commit 3c111af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msystems/migrations/0002_add_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _get_role(role_id):


def _create_role(role_id, role_name):
role = _get_role(INSPECTOR_ID)
role = _get_role(role_id)
if not role:
role = Role(is_system=role_id, name=role_name, is_blocked=False)
role.save()
Expand Down

0 comments on commit 3c111af

Please sign in to comment.