From 3703c1a509c6b4d4903955790f25458493929f2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Thu, 13 Jan 2011 00:10:19 -0200 Subject: [PATCH] Setup signal sender properly. Closes gh-10 --- social_auth/backends.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/social_auth/backends.py b/social_auth/backends.py index fc5fd30..62ffc01 100644 --- a/social_auth/backends.py +++ b/social_auth/backends.py @@ -120,7 +120,8 @@ class SocialAuthBackend(ModelBackend): # user instance (created or retrieved from database), service # response and processed details, signal handlers must return # True or False to signal that something has changed - updated = filter(None, pre_update.send(sender=self, user=user, + updated = filter(None, pre_update.send(sender=self.__class__, + user=user, response=response, details=details)) if changed or len(updated) > 0: -- 2.39.5