mixins.py
4.17 KB
-
Support for request-based queryset limits on ListModelMixin · de4604be
ListModelMixin uses the get_queryset from the MultipleObjectMixin. This method can be overridden on the View class to return a different queryset, but get_queryset doesn't accept a request parameter in. This commit adds the limit_list hook to override if you want to limit the queryset based on request-information such as the logged in user.
Jens Alm committed