]> git.parisson.com Git - django-social-auth.git/commitdiff
Fix user details update
authorMatías Aguirre <matiasaguirre@gmail.com>
Mon, 22 Aug 2011 01:46:42 +0000 (22:46 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Mon, 22 Aug 2011 01:46:42 +0000 (22:46 -0300)
social_auth/backends/__init__.py

index ed15e4b1b3902bb526fd51d57c70619835a6eb0c..5db8fd6a912855a1b661466f45f3279ef9d798c3 100644 (file)
@@ -214,7 +214,7 @@ class SocialAuthBackend(ModelBackend):
                 # do not update username, it was already generated by
                 # self.username(...) and loaded in given instance
                 if name != USERNAME and value and value != getattr(user, name,
-                                                                   value):
+                                                                   None):
                     setattr(user, name, value)
                     changed = True