class documentation
class BaseDeleteView(DeletionMixin, FormMixin, BaseDetailView): (source)
Known subclasses: django.views.generic.DeleteView
Base view for deleting an object. Using this base class requires subclassing to provide a response mixin.
Method | __init__ |
Undocumented |
Method | form |
If the form is valid, redirect to the supplied URL. |
Method | post |
Undocumented |
Instance Variable | object |
Undocumented |
Inherited from DeletionMixin
:
Method | delete |
Call the delete() method on the fetched object and then redirect to the success URL. |
Method | get |
Undocumented |
Class Variable | success |
Undocumented |
Inherited from FormMixin
(via DeletionMixin
):
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 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. |
Class Variable | form |
Undocumented |
Class Variable | initial |
Undocumented |
Class Variable | prefix |
Undocumented |
Inherited from BaseDetailView
(via DeletionMixin
, FormMixin
):
Method | get |
Undocumented |
Inherited from SingleObjectMixin
(via DeletionMixin
, FormMixin
, BaseDetailView
):
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 DeletionMixin
, FormMixin
, BaseDetailView
, SingleObjectMixin
):
Class Variable | extra |
Undocumented |