class UpdateView(SingleObjectTemplateResponseMixin, BaseUpdateView): (source)
View for updating an object, with a response rendered by a template.
Class Variable | template |
Undocumented |
Inherited from SingleObjectTemplateResponseMixin
:
Method | get |
Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list: |
Class Variable | template |
Undocumented |
Inherited from TemplateResponseMixin
(via SingleObjectTemplateResponseMixin
):
Method | render |
Return a response, using the `response_class` for this view, with a template rendered with the given context. |
Class Variable | content |
Undocumented |
Class Variable | template |
Undocumented |
Class Variable | template |
Undocumented |
Inherited from BaseUpdateView
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
):
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
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseUpdateView
):
Method | form |
If the form is valid, save the associated model. |
Method | get |
Return the form class to use in this view. |
Method | get |
Return the keyword arguments for instantiating the form. |
Method | get |
Return the URL to redirect to after processing a valid form. |
Class Variable | fields |
Undocumented |
Inherited from FormMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseUpdateView
, ModelFormMixin
):
Method | form |
If the form is invalid, render the invalid form. |
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 initial data to use for forms on this view. |
Method | get |
Return the prefix to use for forms. |
Class Variable | form |
Undocumented |
Class Variable | initial |
Undocumented |
Class Variable | prefix |
Undocumented |
Class Variable | success |
Undocumented |
Inherited from SingleObjectMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseUpdateView
, ModelFormMixin
, FormMixin
):
Method | get |
Get the name to use for the object. |
Method | get |
Return the object the view is displaying. |
Method | get |
Return the `QuerySet` that will be used to look up the object. |
Method | get |
Get the name of a slug field to be used to look up by slug. |
Class Variable | context |
Undocumented |
Class Variable | model |
Undocumented |
Class Variable | pk |
Undocumented |
Class Variable | query |
Undocumented |
Class Variable | queryset |
Undocumented |
Class Variable | slug |
Undocumented |
Class Variable | slug |
Undocumented |
Inherited from ContextMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseUpdateView
, ModelFormMixin
, FormMixin
, SingleObjectMixin
):
Class Variable | extra |
Undocumented |
Inherited from ProcessFormView
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseUpdateView
, ModelFormMixin
, FormMixin
, SingleObjectMixin
, ContextMixin
):
Method | put |
Undocumented |