diff options
| author | Ben Konrath | 2012-10-08 22:00:55 +0200 | 
|---|---|---|
| committer | Ben Konrath | 2012-10-11 12:01:07 +0200 | 
| commit | 1e9ece0f9353515265da9b6266dc4b39775a0257 (patch) | |
| tree | ab71c69bc46d7e48e256a2cb31128b241e0b2e0f /rest_framework/mixins.py | |
| parent | 83f39b3dce4028ff6b2ebe0be55c2a00d67ede00 (diff) | |
| download | django-rest-framework-1e9ece0f9353515265da9b6266dc4b39775a0257.tar.bz2 | |
First attempt at adding filter support.
The filter support uses django-filter to work its magic.
Diffstat (limited to 'rest_framework/mixins.py')
| -rw-r--r-- | rest_framework/mixins.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py index 29153e18..04626fb0 100644 --- a/rest_framework/mixins.py +++ b/rest_framework/mixins.py @@ -33,7 +33,7 @@ class ListModelMixin(object):      empty_error = u"Empty list and '%(class_name)s.allow_empty' is False."      def list(self, request, *args, **kwargs): -        self.object_list = self.get_queryset() +        self.object_list = self.get_filtered_queryset()          # Default is to allow empty querysets.  This can be altered by setting          # `.allow_empty = False`, to raise 404 errors on empty querysets. | 
