I am trying to dynamically add forms to a form wizard.  Initially the
form wizard subclass is instantiated with three forms as follows:

# from urls.py
(r'^add/$', RecipeWizard([HeaderForm, IngredientForm, BodyForm])),

The idea is that a user will add any number of ingredients to a
recipe, so there are two submit inputs in that form with different
different name attributes.  So, if a user clicks "Save and continue",
they should advance past the ingredients and on to the next part of
the form; otherwise another form should be inserted before the
BodyForm.  My FormWizard subclass is here:
http://dpaste.com/119511/
The form never makes it to the done() method.  The step of the wizard
begins alternating between 1 and 4.  I've tried setting the step
manually by overriding determine_step() but I haven't had any success.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to