diff --git a/seminar/migrations/0088_perm_org_a_ucastnik.py b/seminar/migrations/0088_perm_org_a_ucastnik.py index febcf141..dc76343a 100644 --- a/seminar/migrations/0088_perm_org_a_ucastnik.py +++ b/seminar/migrations/0088_perm_org_a_ucastnik.py @@ -22,6 +22,7 @@ def add_perms(apps, schema_editor): for org in User.objects.all(): if org and org.is_staff: org.user_permissions.add(org_perm) + org.user_permissions.remove(resitel_perm) class Migration(migrations.Migration):