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 680b928 commit 927b94e
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 @@ -13,7 +13,7 @@ def _get_role(role_name, role_model):


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

0 comments on commit 927b94e

Please sign in to comment.