]> git.parisson.com Git - django-social-auth.git/commitdiff
Reverted signal processing in user details update; removed django dependency from...
authorStas Kravets <skravets@internal-rfc1918.hn.nnov.stream.ru>
Mon, 17 Jan 2011 14:01:22 +0000 (17:01 +0300)
committerStas Kravets <skravets@internal-rfc1918.hn.nnov.stream.ru>
Mon, 17 Jan 2011 14:01:22 +0000 (17:01 +0300)
setup.py
social_auth/backends.py

index bd558ed4839e30a84cc48cca9f6b0a2e5c1a5888..321d75951b1c5e8265178785e575380c7c36e10a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -34,8 +34,7 @@ setup(name='django-social-auth',
       url='https://github.com/omab/django-social-auth',
       packages=['social_auth'],
       long_description=long_description(),
-      install_requires=['django>=1.2',
-                        'oauth>=1.0',
+      install_requires=['oauth>=1.0',
                         'python_openid>=2.2'],
       classifiers=['Framework :: Django',
                    'Development Status :: 4 - Beta',
index 3c627dc148b5c17aaf05c67468cce8b9e6dc94c4..bcd545023b1434b6786d684f4acd8d1216a8c5b4 100644 (file)
@@ -128,7 +128,15 @@ class SocialAuthBackend(ModelBackend):
                                                user=user,
                                                response=response,
                                                details=details))
-        if changed or updated:
+        
+        # Looking for at least one update    
+        has_update = False
+        for result in updated:
+            if result[1]:    
+                has_update = True
+                break
+
+        if changed or has_update:
             user.save()
 
     def get_user_id(self, details, response):