django_auxilium.views.wizard module

class django_auxilium.views.wizard.WizardView(**kwargs)[source]

Bases: formtools.wizard.views.WizardView

Modified Django’s WizardView which allows to specify form_list as class attribute.

When using Django’s WizardView, the form_list must be specified when calling as_view():

WizardView.as_view(form_list)

This class allows to provide the form_list as class attribute:

Wizard(WizardView):
    form_list = []

Wizard.as_view()

Warning

This class requires django-formtools to be independently installed since this library does not install it as a dependency.

form_list = []
classmethod get_initkwargs(*args, **kwargs)[source]

Custom get_initkwargs which adds form_list to the super call when class defines any forms.