class documentation
class SingleObjectMixin(ContextMixin): (source)
Known subclasses: django.views.generic.detail.BaseDetailView
, django.views.generic.edit.ModelFormMixin
Provide the ability to retrieve a single object for further manipulation.
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
:
Class Variable | extra |
Undocumented |
overridden in
django.views.generic.dates.BaseDateDetailView
Return the object the view is displaying. Require `self.queryset` and a `pk` or `slug` argument in the URLconf. Subclasses can override this to return any object.