python-social-auth icon indicating copy to clipboard operation
python-social-auth copied to clipboard

Saving to session and access after pipeline

Open sid24ss opened this issue 12 years ago • 2 comments

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 ?

sid24ss avatar Mar 16 '14 10:03 sid24ss

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.

omab avatar Mar 16 '14 18:03 omab

Alright. I guess this can be closed then. Thanks!

sid24ss avatar Mar 17 '14 00:03 sid24ss