class documentation

class DeleteView(SingleObjectTemplateResponseMixin, BaseDeleteView): (source)

View In Hierarchy

View for deleting an object retrieved with self.get_object(), with a response rendered by a template.

Class Variable template_name_suffix Undocumented

Inherited from SingleObjectTemplateResponseMixin:

Method get_template_names 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_name_field Undocumented

Inherited from TemplateResponseMixin (via SingleObjectTemplateResponseMixin):

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 BaseDeleteView (via SingleObjectTemplateResponseMixin, TemplateResponseMixin):

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 (via SingleObjectTemplateResponseMixin, TemplateResponseMixin, BaseDeleteView):

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 (via SingleObjectTemplateResponseMixin, TemplateResponseMixin, BaseDeleteView, DeletionMixin):

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.
Class Variable form_class Undocumented
Class Variable initial Undocumented
Class Variable prefix Undocumented

Inherited from BaseDetailView (via SingleObjectTemplateResponseMixin, TemplateResponseMixin, BaseDeleteView, DeletionMixin, FormMixin):

Method get Undocumented

Inherited from SingleObjectMixin (via SingleObjectTemplateResponseMixin, TemplateResponseMixin, BaseDeleteView, DeletionMixin, FormMixin, BaseDetailView):

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 SingleObjectTemplateResponseMixin, TemplateResponseMixin, BaseDeleteView, DeletionMixin, FormMixin, BaseDetailView, SingleObjectMixin):

Class Variable extra_context Undocumented