1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-27 07:42:20 +00:00
plateforme-corres2math/apps/registration/apps.py
2020-10-30 19:46:46 +01:00

16 lines
524 B
Python

from django.apps import AppConfig
from django.db.models.signals import post_save, pre_save
class RegistrationConfig(AppConfig):
"""
Registration app contains the detail about users only.
"""
name = 'registration'
def ready(self):
from registration.signals import set_username, send_email_link, create_admin_registration
pre_save.connect(set_username, "auth.User")
pre_save.connect(send_email_link, "auth.User")
post_save.connect(create_admin_registration, "auth.User")