python-social-auth
python-social-auth copied to clipboard
Saving to session and access after pipeline
I'm saving the is_new parameter to the session in one of my partial views, but I can't seem to be able to access it once the pipeline is completed.
@partial
def some_partial_view( is_new = False, *args, **kwargs):
kwargs['request'].session['is_new'] = is_new
Is there a standard way of accessing is_new in my redirect view (say, /profile) than redirecting it to /profile/new ?
The thing with sessions, is that they are usually cleared when the user is logged in, that's why you can't access the is_new value after auth finished, the unique method right now is to define NEW_USER_REDIRECT_URL and send the user to a different page where you can set any value if needed.
Alright. I guess this can be closed then. Thanks!