class documentation

class FormView(TemplateResponseMixin, BaseFormView): (source)

View In Hierarchy

A view for displaying a form and rendering a template response.

Inherited from TemplateResponseMixin:

Method get_template_names Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response() is overridden.
Method render_to_response Return a response, using the `response_class` for this view, with a template rendered with the given context.
Class Variable content_type Undocumented
Class Variable template_engine Undocumented
Class Variable template_name Undocumented

Inherited from FormMixin (via TemplateResponseMixin, BaseFormView):

Method form_invalid If the form is invalid, render the invalid form.
Method form_valid If the form is valid, redirect to the supplied URL.
Method get_context_data Insert the form into the context dict.
Method get_form Return an instance of the form to be used in this view.
Method get_form_class Return the form class to use.
Method get_form_kwargs Return the keyword arguments for instantiating the form.
Method get_initial Return the initial data to use for forms on this view.
Method get_prefix Return the prefix to use for forms.
Method get_success_url Return the URL to redirect to after processing a valid form.
Class Variable form_class Undocumented
Class Variable initial Undocumented
Class Variable prefix Undocumented
Class Variable success_url Undocumented

Inherited from ContextMixin (via TemplateResponseMixin, BaseFormView, FormMixin):

Class Variable extra_context Undocumented

Inherited from ProcessFormView (via TemplateResponseMixin, BaseFormView, 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