Fix arguments in signal calling
authorMagnus Hagander <magnus@hagander.net>
Wed, 7 Jun 2023 20:17:55 +0000 (22:17 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 7 Jun 2023 20:17:55 +0000 (22:17 +0200)
tools/communityauth/sample/django/auth.py

index 8a59595096d5f101d7d153b535b2da30620be3b7..0a075715838f347669fba0c74e3e73d043ac0ade 100644 (file)
@@ -184,7 +184,7 @@ We apologize for the inconvenience.
                     )
         user.save()
 
-        auth_user_created_from_upstream.send(user)
+        auth_user_created_from_upstream.send(sender=auth_receive, user=user)
 
     # Ok, we have a proper user record. Now tell django that
     # we're authenticated so it persists it in the session. Before
@@ -371,6 +371,6 @@ def user_import(uid):
     )
     u.save()
 
-    auth_user_created_from_upstream.send(user)
+    auth_user_created_from_upstream.send(sender=user_import, user=u)
 
     return u