diff --git a/src/agenda_culturel/migrations/0048_auto_20240417_1212.py b/src/agenda_culturel/migrations/0048_auto_20240417_1212.py index da0ece8..a1f0eb3 100644 --- a/src/agenda_culturel/migrations/0048_auto_20240417_1212.py +++ b/src/agenda_culturel/migrations/0048_auto_20240417_1212.py @@ -14,7 +14,7 @@ def update_groups_permissions(apps, schema_editor): all_perms = Permission.objects.all() # set permissions for moderators - editor_perms = [i for i in all_perms if i.content_type.app_label == 'agenda_culturel' and i.content_type.model in ['event', 'staticcontent']] + editor_perms = [i for i in all_perms if i.content_type.app_label == 'agenda_culturel' and i.content_type.model == 'staticcontent'] Group.objects.get(name="Static content editor").permissions.add(*editor_perms)