Commits

Tom Christie committed 6554b58

Fix #36

Comments (0)

Files changed (1)

djangorestframework/mixins.py

     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)