mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-04 19:04:03 +02:00
Enable registration form
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
from django.apps import AppConfig
|
||||
from django.db.models.signals import pre_save, post_save
|
||||
|
||||
|
||||
class RegistrationConfig(AppConfig):
|
||||
name = 'registration'
|
||||
|
||||
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")
|
||||
|
Reference in New Issue
Block a user