class documentation

class BaseDeleteView(DeletionMixin, FormMixin, BaseDetailView):

Known subclasses: django.views.generic.DeleteView

View In Hierarchy

Base view for deleting an object.

Using this base class requires subclassing to provide a response mixin.

Method __init__ Undocumented
Method form​_valid 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​_success​_url Undocumented
Class Variable success​_url Undocumented

Inherited from FormMixin:

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​_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 FormMixin):

Class Variable extra​_context Undocumented

Inherited from BaseDetailView:

Method get Undocumented

Inherited from SingleObjectMixin (via BaseDetailView):

Method get​_context​_data Insert the single object into the context dict.
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 BaseDetailView, SingleObjectMixin):

Class Variable extra​_context Undocumented
def __init__(self, *args, **kwargs):

Undocumented

def form_valid(self, form):
If the form is valid, redirect to the supplied URL.
def post(self, request, *args, **kwargs):
object =