Fix groupes
This commit is contained in:
		@@ -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)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user