[Python-modules-commits] [python-social-auth] 12/32: fix(pipeline): fix user_detail pipeline issue

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:13:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.12
in repository python-social-auth.

commit dd9e53cbe02c0652cca35cde6d859512de4f9e44
Author: Maksim Sokolskiy <misokolsky at gmail.com>
Date:   Thu Jul 9 13:01:47 2015 +0300

    fix(pipeline): fix user_detail pipeline issue
    
    Change `current_value` checking to allow to change empty and protected user fields
---
 social/pipeline/user.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/pipeline/user.py b/social/pipeline/user.py
index 2157917..aa1ddcc 100644
--- a/social/pipeline/user.py
+++ b/social/pipeline/user.py
@@ -85,7 +85,7 @@ def user_details(strategy, details, user=None, *args, **kwargs):
         for name, value in details.items():
             if value and hasattr(user, name):
                 current_value = getattr(user, name, None)
-                if current_value is None or name not in protected:
+                if not current_value or name not in protected:
                     changed |= current_value != value
                     setattr(user, name, value)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list