From fbcfa862e3d5a0b0451d5bb391295eaa8a710790 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Mon, 24 Jan 2011 10:53:32 -0200 Subject: [PATCH] Update user only if needed --- social_auth/backends/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_auth/backends/__init__.py b/social_auth/backends/__init__.py index 7549f7d..a0e1b90 100644 --- a/social_auth/backends/__init__.py +++ b/social_auth/backends/__init__.py @@ -101,7 +101,7 @@ class SocialAuthBackend(ModelBackend): # Update extra_data storage, unless disabled by setting if getattr(settings, 'SOCIAL_AUTH_EXTRA_DATA', True): extra_data = self.extra_data(user, uid, response, details) - if extra_data: + if extra_data and social_user.extra_data != extra_data: social_user.extra_data = extra_data social_user.save() -- 2.39.5