diff options
| author | Jens Alm | 2012-10-15 11:47:56 +0200 |
|---|---|---|
| committer | Jens Alm | 2012-10-15 11:47:56 +0200 |
| commit | de4604be0ab64da2d7da0a7054197278e566ced2 (patch) | |
| tree | edc26439c281c985efabb2a95344da87f3fd3c75 /rest_framework/response.py | |
| parent | 36cc56bc9d49832ca990ba8568903966f46a2938 (diff) | |
| download | django-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/response.py')
0 files changed, 0 insertions, 0 deletions
