mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 05:54:01 +03:00
Add missing piece to commit 02b2020995
I missed copying this change from the test environment.
This commit is contained in:
parent
02b2020995
commit
c3cb70ac96
|
@ -516,8 +516,8 @@ class ModelMixin(object):
|
|||
"""
|
||||
queryset = getattr(self.resource, 'queryset',
|
||||
self.resource.model.objects.all())
|
||||
return getattr(self.resource, 'queryset',
|
||||
self.resource.model.objects.all())
|
||||
return queryset() if isinstance(queryset, Callable) else queryset
|
||||
|
||||
|
||||
def get_ordering(self):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user