views.generic.detail.SingleObjectMixin.get_queryset()

get_queryset()

Returns the queryset that will be used to retrieve the object that this view will display. By default, get_queryset() returns the value of the queryset attribute if it is set, otherwise it constructs a QuerySet by calling the all() method on the model attribute’s default manager.

doc_Django
2016-10-09 18:41:02
Comments
Leave a Comment

Please login to continue.