Re: Login at the end of form wizard

2014-02-17 Thread parnigot
Thanks Camilo, I've tried to use that method but I was having a lot of problems. In in end I've decided to manually copy the cookie with the data with something like this (simplified version): ... form_data = request.session.get_signed_cookie("wizard_cookie_name") login(request, user)

Re: Login at the end of form wizard

2014-02-16 Thread Camilo Torres
On Friday, February 14, 2014 6:30:46 AM UTC-4:30, parnigot wrote: > > To work around the problem I’m now trying to include the login form as a > step of the wizard view. > > But I’ve encountered another problem. How can i login the user after it > completed the login step? > Does WizardView

Re: Login at the end of form wizard

2014-02-14 Thread parnigot
To work around the problem I'm now trying to include the login form as a step of the wizard view. But I've encountered another problem. How can i login the user after it completed the login step? Does WizardView have a method executed at the end of each step that I can override to do this?

Re: Login at the end of form wizard

2014-02-14 Thread parnigot
Thanks Thomas, I've replaced the SessionWizardView with a NamedUrlSessionWizard but it still doesn't work. I've tried to redirect the user after the login to the base url (the one without steps), to the last step and to the done step but the wizard always restart at the beginning or is empty.

Re: Login at the end of form wizard

2014-02-13 Thread Thomas Leo
Sorry I meant to say NamedUrlSessionWizardView not NamedUrlWizardView On Thursday, February 13, 2014 11:08:36 AM UTC-5, Thomas Leo wrote: > > >> when a user logs in and gets redirected to the order page the wizard > starts again from the beginning (loosing all the data inserted the first >

Re: Login at the end of form wizard

2014-02-13 Thread Thomas Leo
>> when a user logs in and gets redirected to the order page the wizard starts again from the beginning (loosing all the data inserted the first time). The issue is that in WizardView, triggering the get function causes the session to

Login at the end of form wizard

2014-02-13 Thread parnigot
Hello fellow django users, I'm using a form wizard (a very basic SessionWizardView) to create a simple "order page". The four steps of the wizard must be accessible to both logged in and anonymous users, but to complete an order the user must authenticate himself (think something like an