portier/core/apps.py

12 lines
326 B
Python
Raw Normal View History

from django.apps import AppConfig
2020-05-02 00:10:36 +02:00
class CoreConfig(AppConfig):
name = 'core'
def ready(self):
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from portier.common import handlers
post_save.connect(handlers.add_to_default_group, sender=User)