aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/files.py
diff options
context:
space:
mode:
authorJens Alm2012-10-15 11:47:56 +0200
committerJens Alm2012-10-15 11:47:56 +0200
commitde4604be0ab64da2d7da0a7054197278e566ced2 (patch)
treeedc26439c281c985efabb2a95344da87f3fd3c75 /rest_framework/tests/files.py
parent36cc56bc9d49832ca990ba8568903966f46a2938 (diff)
downloaddjango-rest-framework-de4604be0ab64da2d7da0a7054197278e566ced2.tar.bz2
Support for request-based queryset limits on ListModelMixin
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.
Diffstat (limited to 'rest_framework/tests/files.py')
0 files changed, 0 insertions, 0 deletions