pytoolbox.django_formtools.views.mixins module

Mix-ins for building your own Django Form Tools powered views.

class pytoolbox.django_formtools.views.mixins.CrispyFormsMixin[source]

Bases: object

get_context_data(form, **kwargs)[source]

Add the management form to the form for working with crispy forms.

class pytoolbox.django_formtools.views.mixins.DataTableViewCompositionMixin[source]

Bases: object

Compose the wizard with some tables views.

table_view_classes = {}
get(request, *args, **kwargs)[source]

Retrieve the table view and delegate AJAX to the table view.

get_context_data(**kwargs)[source]

Update the context with the context returned by the table view.

get_table_view()[source]

Return an instance of the datatable-view for current step, defaults to None.

class pytoolbox.django_formtools.views.mixins.SerializeStepInstanceMixin[source]

Bases: object

serialized_instance_form_class

alias of pytoolbox.django.forms.base.SerializedInstanceForm

serialized_instances_key = 'serialized-instances'
serialized_instances
serialize_step_instance(form, step=None)[source]
get_form(step=None, *args, **kwargs)[source]
get_form_kwargs(step)[source]