class documentation

Base view for updating an existing object. Using this base class requires subclassing to provide a response mixin.

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.
Instance Variable object Undocumented

Inherited from ModelFormMixin:

Method form_valid If the form is valid, save the associated model.
Method get_form_class Return the form class to use in this view.
Method get_form_kwargs Return the keyword arguments for instantiating the form.
Method get_success_url Return the URL to redirect to after processing a valid form.
Class Variable fields Undocumented

Inherited from FormMixin (via ModelFormMixin):

Method form_invalid If the form is invalid, render the invalid form.
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_initial Return the initial data to use for forms on this view.
Method get_prefix Return the prefix to use for forms.
Class Variable form_class Undocumented
Class Variable initial Undocumented
Class Variable prefix Undocumented
Class Variable success_url Undocumented

Inherited from SingleObjectMixin (via ModelFormMixin, FormMixin):

Method get_context_object_name Get the name to use for the object.
Method get_object Return the object the view is displaying.
Method get_queryset Return the `QuerySet` that will be used to look up the object.
Method get_slug_field Get the name of a slug field to be used to look up by slug.
Class Variable context_object_name Undocumented
Class Variable model Undocumented
Class Variable pk_url_kwarg Undocumented
Class Variable query_pk_and_slug Undocumented
Class Variable queryset Undocumented
Class Variable slug_field Undocumented
Class Variable slug_url_kwarg Undocumented

Inherited from ContextMixin (via ModelFormMixin, FormMixin, SingleObjectMixin):

Class Variable extra_context Undocumented

Inherited from ProcessFormView (via ModelFormMixin, FormMixin, SingleObjectMixin, ContextMixin):

Method put Undocumented
def get(self, request, *args, **kwargs): (source)

Handle GET requests: instantiate a blank version of the form.

def post(self, request, *args, **kwargs): (source)

Handle POST requests: instantiate a form instance with the passed POST variables and then check if it's valid.