class DetailView(SingleObjectTemplateResponseMixin, BaseDetailView): (source)
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 |
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 |
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 BaseDetailView
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
):
Method | get |
Undocumented |
Instance Variable | object |
Undocumented |
Inherited from SingleObjectMixin
(via SingleObjectTemplateResponseMixin
, TemplateResponseMixin
, BaseDetailView
):
Method | get |
Insert the single object into the context dict. |
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
, BaseDetailView
, SingleObjectMixin
):
Class Variable | extra |
Undocumented |