]> git.parisson.com Git - django-social-auth.git/commitdiff
Use dict update to avoid losing extra_data values. Refs #299
authorMatías Aguirre <matiasaguirre@gmail.com>
Sun, 13 May 2012 18:13:07 +0000 (15:13 -0300)
committerMatías Aguirre <matiasaguirre@gmail.com>
Sun, 13 May 2012 18:13:07 +0000 (15:13 -0300)
social_auth/backends/pipeline/social.py

index 6d0e6cce43ffc19bbe327f710d565a96147d63fe..d7674583d071c0cc49134d1ad21eb5c52cdc4f10 100644 (file)
@@ -58,5 +58,5 @@ def load_extra_data(backend, details, response, social_user, uid, user,
     if setting('SOCIAL_AUTH_EXTRA_DATA', True):
         extra_data = backend.extra_data(user, uid, response, details)
         if extra_data and social_user.extra_data != extra_data:
-            social_user.extra_data = extra_data
+            social_user.extra_data.update(extra_data)
             social_user.save()