class documentation
class BaseFormView(FormMixin, ProcessFormView): (source)
Known subclasses: django.views.generic.FormView
A base view for displaying a form.
Inherited from FormMixin
:
Method | form |
If the form is invalid, render the invalid form. |
Method | form |
If the form is valid, redirect to the supplied URL. |
Method | get |
Insert the form into the context dict. |
Method | get |
Return an instance of the form to be used in this view. |
Method | get |
Return the form class to use. |
Method | get |
Return the keyword arguments for instantiating the form. |
Method | get |
Return the initial data to use for forms on this view. |
Method | get |
Return the prefix to use for forms. |
Method | get |
Return the URL to redirect to after processing a valid form. |
Class Variable | form |
Undocumented |
Class Variable | initial |
Undocumented |
Class Variable | prefix |
Undocumented |
Class Variable | success |
Undocumented |
Inherited from ContextMixin
(via FormMixin
):
Class Variable | extra |
Undocumented |
Inherited from ProcessFormView
(via FormMixin
, ContextMixin
):
Method | get |
Handle GET requests: instantiate a blank version of the form. |
Method | post |
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it's valid. |
Method | put |
Undocumented |