feat: ensure languages exist

This commit is contained in:
2024-04-14 13:23:35 +02:00
parent ab1246b6d0
commit 707719c299
2 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
from django.apps import AppConfig
from .tools.signals import ensure_groups
from .tools.signals import ensure_groups, ensure_languages
from django.db.models.signals import post_migrate
@@ -14,3 +14,4 @@ class FellchensammlungConfig(AppConfig):
post_migrate.connect(ensure_groups, sender=self)
except Permission.DoesNotExist:
pass
post_migrate.connect(ensure_languages, sender=self)