FIXED: i had to add a dummy value to initial form_list of FormWizard so it thinks that it always has two forms :/
On 12 Бер, 00:34, Dmitry Shevchenko <[email protected]> wrote: > Hi, > > I have a very strange problem with FormWizard class. I have a two-step > registration process, first form is predefined, > second if dynamic and inserted like this: > > def process_step(self, request, form, step): > if step == 0 and form.is_valid(): > region_form = make_form(foo) > > if region_form and len(self.form_list) == 1: > self.form_list.append(region_form) > > make_form returns form class which is added to form_list if there isn't > second step. > > So it works ok, shows second form and then, if form is valid, returns > > 404: Step 1 does not exist > > BUT if i enter some bogus values so the form is not valid, it works ok and > returns form with errors. > > I don't know where to start digging. > > -- > Best regards, Dmitry Shevchenko. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

