From: Matías Aguirre Date: Mon, 22 Aug 2011 01:46:42 +0000 (-0300) Subject: Fix user details update X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b2c64891d8a45e2fe98896053a41f479b0e2b2cd;p=django-social-auth.git Fix user details update --- diff --git a/social_auth/backends/__init__.py b/social_auth/backends/__init__.py index ed15e4b..5db8fd6 100644 --- a/social_auth/backends/__init__.py +++ b/social_auth/backends/__init__.py @@ -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