Skip to content

Commit

Permalink
Trying something a little different for the hook / signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mann committed Nov 17, 2024
1 parent e62b4fb commit 910aa87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lesgrandsvoisins/apps.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from django.apps import AppConfig
from django.contrib.auth.models import Group


def user_signed_up_callback(sender, request, user, **kargs):
from django.contrib.auth.models import Group

dashboard_user_group = Group.objects.get(name="dashboard")
user.groups.add(dashboard_user_group)

Expand Down

0 comments on commit 910aa87

Please sign in to comment.