Opened 12 years ago
Closed 12 years ago
#19179 closed Bug (fixed)
NamedUrlSessionWizard and NamedUrlCookieWizard undocumented
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | SessionWizardView, NamedUrlWizardView |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
When creating a formtools.wizard.views.NamedUrlWizardView you must subclass both SessionWizardView and NamedUrlWizardView. This is ran me for a bit of a loop today, and their is no mention of this in the documentation.
Example of a view:
class SubClassOfFormWizard(SessionWizardView, NamedUrlWizardView): def done(self, form_list, **kwargs): return render_to_response('finished.html', { 'form_data': [form.cleaned_data for form in form_list], })
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Easy pickings: | set |
---|---|
Summary: | No mention of Multiiple Inheritance required for NamedUrlWizardView → NamedUrlSessionWizard and NamedUrlCookieWizard undocumented |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
After looking at the code it's now clear that NamedUrlSessionWizard or NamedUrlCookieWizard should be used in place of NamedUrlWizard instead of inheriting from two classes.