djangosnippets.org: Latest snippets posted by LaraChicharohttp://djangosnippets.org/users/LaraChicharo/2015-09-11T03:57:46.837022-05:00LaraChicharoMutiple forms on Form wizard
2015-09-11T03:57:46.837022-05:00LaraChicharohttp://djangosnippets.org/snippets/10528/<p>Wraps many Form subclases in order to get a form wizard to treat them as one.</p>
<p>Many Forms will use one step.</p>
<p><strong>Example:</strong></p>
<p><code>class LanguageVerifiedHumanForm(MultipleForms):
base_forms = [
('language_form', LanguageForm), ('verified_human_form', VerifiedHumanForm)
]</code></p>
<p><code>class NewGuideWizard(SessionWizardView):
form_list = [
('guide_form', GuideForm),
('multi_form', LanguageVerifiedHumanForm),
]</code></p>
Freely redistributable