feat: Ensure correct groups are creeated with permissions

This commit is contained in:
2024-04-12 22:23:49 +02:00
parent 1a2878330e
commit 4767fb4e76
4 changed files with 49 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
from django.apps import AppConfig
from .tools.signals import ensure_groups
from django.db.models.signals import post_migrate
class FellchensammlungConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'fellchensammlung'
def ready(self):
post_migrate.connect(ensure_groups, sender=self)