1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-02-06 14:13:03 +00:00

12 lines
377 B
Python
Raw Normal View History

2020-09-21 15:41:55 +02:00
from django.apps import AppConfig
2020-09-22 12:27:03 +02:00
from django.db.models.signals import pre_save, post_save
2020-09-21 15:41:55 +02:00
class RegistrationConfig(AppConfig):
name = 'registration'
2020-09-22 12:27:03 +02:00
def ready(self):
from registration.signals import set_username, create_admin_registration
pre_save.connect(set_username, "auth.User")
post_save.connect(create_admin_registration, "auth.User")