From: Matías Aguirre Date: Wed, 30 May 2012 18:21:18 +0000 (-0300) Subject: Add comment explaining is_new/login issue. Refs #354 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e0ef2d189bbae448b164a91df24c1dd258e02fbc;p=django-social-auth.git Add comment explaining is_new/login issue. Refs #354 --- diff --git a/social_auth/views.py b/social_auth/views.py index bebcc78..23d78b4 100644 --- a/social_auth/views.py +++ b/social_auth/views.py @@ -103,6 +103,7 @@ def complete_process(request, backend, *args, **kwargs): if user: if getattr(user, 'is_active', True): + # catch is_new flag before login() might reset the instance is_new = getattr(user, 'is_new', False) login(request, user) # user.social_user is the used UserSocialAuth instance defined