Is there some way to skip multiple steps in Django's Form Wizard (i.e. SessionWizardView)?
I know it is possible to use condition_dict to produce the following form display logic: Page 1 -> Page 3
#urls.py
path('main/', MyWizard.as_view(set_of_forms, condition_dict={'1': view_condition} ))
What I would like to do is the following: Page 1 --> Page 4
Presumably, adding a condition_dict based on the content of Page 1 should work to skip Page 3, but it doesn't work. For example:
#urls.py
path('main/', MyWizard.as_view(set_of_forms, condition_dict={'1': view_condition, '2': view_condition2,} ))
I am truly stumped on how to crack this nut. Any guidance that you can provide would be GREATLY appreciated.
The typical way to specify when FormWizard skips a step is to use a condition_dictionary. Django uses the structure to only include the form for a step when the conditions (set as callables)