From 16d8c3255d549d410b04d86ab82d024ff2f79d66 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 1 Jul 2011 03:30:28 -0700 Subject: [PATCH] Fix #36 --- djangorestframework/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py index 1b3aa241c..9bd7598e5 100644 --- a/djangorestframework/mixins.py +++ b/djangorestframework/mixins.py @@ -598,7 +598,7 @@ class ListModelMixin(object): def get(self, request, *args, **kwargs): model = self.resource.model - queryset = self.queryset if self.queryset else model.objects.all() + queryset = self.queryset if self.queryset is not None else model.objects.all() if hasattr(self, 'resource'): ordering = getattr(self.resource, 'ordering', None)