]> git.parisson.com Git - django-social-auth.git/commitdiff
Merge pull request #219 from avillavi/master
authorMatías Aguirre <matiasaguirre@gmail.com>
Thu, 12 Jan 2012 14:05:42 +0000 (06:05 -0800)
committerMatías Aguirre <matiasaguirre@gmail.com>
Thu, 12 Jan 2012 14:05:42 +0000 (06:05 -0800)
FIx for SOCIAL_AUTH_NEW_USER_REDIRECT_URL not working

1  2 
social_auth/backends/__init__.py

index 28e836ae4941bd76cd5ee37787cd21262290ad35,df8d7eecea1ca6b800d1bf4a8e622873005a2342..6b029344f62f4207b44085feb990bab5b2ae2074
@@@ -113,10 -114,10 +113,10 @@@ class SocialAuthBackend(ModelBackend)
              # account
              user = social_user.user
              user.social_user = social_user
-             user.is_new = kwargs.get('is_new')
+             user.is_new = out.get('is_new')
              return user
  
 -    def pipeline(self, pipeline, request, *args, **kwargs):
 +    def pipeline(self, pipeline, *args, **kwargs):
          """Pipeline"""
          out = kwargs.copy()