Bases: object
This mixin class is to be used for together with ModalFormView and WorkflowView classes to augment them with modal_backdrop context data.
Bases: horizon.forms.views.ModalBackdropMixin
Bases: horizon.forms.views.ModalFormMixin, horizon.views.HorizonFormView
The main view class from which all views which handle forms in Horizon should inherit. It takes care of all details with processing SelfHandlingForm classes, and modal concerns when the associated template inherits from horizon/common/_modal_form.html.
Subclasses must define a form_class and template_name attribute at minimum.
See Django’s documentation on the FormView class for more details.
Returns an instance of the form to be used in this view.
For dynamic insertion of resources created in modals, this method returns the display name of the created object. Defaults to returning the name attribute.
For dynamic insertion of resources created in modals, this method returns the id of the created object. Defaults to returning the id attribute.