Browse Source

Odebrání orgům právo řešitel

middleware_test
Jonas Havelka 3 years ago
parent
commit
fb79951ee7
  1. 1
      seminar/migrations/0088_perm_org_a_ucastnik.py

1
seminar/migrations/0088_perm_org_a_ucastnik.py

@ -22,6 +22,7 @@ def add_perms(apps, schema_editor):
for org in User.objects.all(): for org in User.objects.all():
if org and org.is_staff: if org and org.is_staff:
org.user_permissions.add(org_perm) org.user_permissions.add(org_perm)
org.user_permissions.remove(resitel_perm)
class Migration(migrations.Migration): class Migration(migrations.Migration):

Loading…
Cancel
Save