From: Matías Aguirre Date: Thu, 13 Jan 2011 02:10:19 +0000 (-0200) Subject: Setup signal sender properly. Closes gh-10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3703c1a509c6b4d4903955790f25458493929f2e;p=django-social-auth.git Setup signal sender properly. Closes gh-10 --- 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: