membersystem/src/membership/apps.py
Víðir Valberg Guðmundsson f18469833a
All checks were successful
continuous-integration/drone/push Build is passing
The ruffening.
2024-07-15 00:19:37 +02:00

17 lines
391 B
Python

"""Membership app configuration."""
from django.apps import AppConfig
from django.db.models.signals import post_migrate
class MembershipConfig(AppConfig):
"""Membership app config."""
name = "membership"
def ready(self) -> None:
"""Ready method."""
from .permissions import persist_permissions
post_migrate.connect(persist_permissions, sender=self)