From b8f1ed5afdfaed49d8f18138e4204a9ecb7df4aa Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sun, 17 Nov 2024 10:38:44 +0100 Subject: [PATCH] Trying a new callback --- lesgrandsvoisins/apps.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lesgrandsvoisins/apps.py b/lesgrandsvoisins/apps.py index 51b3ff72..7fbdc92a 100644 --- a/lesgrandsvoisins/apps.py +++ b/lesgrandsvoisins/apps.py @@ -1,16 +1,18 @@ -from allauth.account.signals import user_signed_up from django.apps import AppConfig -from django.contrib.auth.models import Group -def user_signed_up_callback(sender, request, user, **kargs): - dashboard_user_group = Group.objects.get(name="dashboard") - user.groups.add(dashboard_user_group) +# from allauth.account.signals import user_signed_up +# from django.contrib.auth.models import Group + + +# def user_signed_up_callback(sender, request, user, **kargs): +# dashboard_user_group = Group.objects.get(name="dashboard") +# user.groups.add(dashboard_user_group) class LesGrandsVoisinsConfig(AppConfig): default_auto_field = "django.db.models.BigAutoField" name = "lesgrandsvoisins" - def ready(self): - user_signed_up.connect(user_signed_up_callback) + # def ready(self): + # user_signed_up.connect(user_signed_up_callback)