From e08139df489e9641a281256927be903d98c169ed Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 7 Jun 2023 22:17:55 +0200 Subject: [PATCH] Fix arguments in signal calling --- tools/communityauth/sample/django/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/communityauth/sample/django/auth.py b/tools/communityauth/sample/django/auth.py index 8a595950..0a075715 100644 --- a/tools/communityauth/sample/django/auth.py +++ b/tools/communityauth/sample/django/auth.py @@ -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