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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.