[ACTION]
Subclass NamedUrlSessionWizardView and instantiate it with a set of
forms one of them containing a FileField
class CommonWizardView(NamedUrlSessionWizardView):
pass
class FamilyWizardView(CommonWizardView):
pass
[RESULT]
File "/accounts/urls.py", line 66, in
family_wizard =
How do I use formwizard within parametrized URLs ?
This is my urls.py
from accounts.jobs.views.wizard import JobWizardView
named_job_forms = (
('narrative', JobNarrativeForm),
('location', JobLocationForm),
('dedication', JobDedicationForm),
('preferences', JobPreferencesForm),
Please pay attention to this piece of code:
formwizard/views.py
class NamedUrlWizardView(WizardView):
def get(self, *args, **kwargs):
"""
This renders the form or, if needed, does the http redirects.
"""
step_url = kwargs.get('step', None)
if step_url is
3 matches
Mail list logo