3👍
✅
Instead of subclassing WizardView
, try subclassing SessionWizardView
:
from formtools.wizard.views import SessionWizardView
class ContactWizard(SessionWizardView):
...
The documentation isn’t very clear on this, but in most cases you shouldn’t subclass WizardView
directly – instead there are a number of sub-views that you should use:
SessionWizardView
CookieWizardView
NamedUrlWizardView
etc.
Source:stackexchange.com