mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Fix #36
This commit is contained in:
parent
8bafa01abd
commit
16d8c3255d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user