class documentation

class DetailView(SingleObjectTemplateResponseMixin, BaseDetailView):

View In Hierarchy

Render a "detail" view of an object.

By default this is a model instance looked up from self.queryset, but the view will support display of any object by overriding self.get_object().

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
Class Variable template​_name​_suffix 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 BaseDetailView:

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