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

This commit is contained in:
Jonas Havelka 2021-09-06 01:39:28 +02:00
parent 1a31a5b034
commit fb79951ee7

View file

@ -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):