Single object mixins
Single object mixins
SingleObjectMixin
-
class django.views.generic.detail.SingleObjectMixin
-
Provides a mechanism for looking up an object associated with the current HTTP request.
Methods and Attributes
-
model
-
The model that this view will display data for. Specifying
model = Foo
is effectively the same as specifyingqueryset = Foo.objects.all()
, whereobjects
stands forFoo
’s default manager.
-