]> git.parisson.com Git - django-social-auth.git/commitdiff
Setup signal sender properly. Closes gh-10
authorMatías Aguirre <matiasaguirre@gmail.com>
Thu, 13 Jan 2011 02:10:19 +0000 (00:10 -0200)
committerMatías Aguirre <matiasaguirre@gmail.com>
Thu, 13 Jan 2011 02:11:25 +0000 (00:11 -0200)
social_auth/backends.py

index fc5fd302a83848ddd87e7e5d8c6eabf758ab3593..62ffc0170aa6902594018c6c1a4edf4da8dd2d38 100644 (file)
@@ -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: