Add missing piece to commit 02b2020995

I missed copying this change from the test environment.
This commit is contained in:
Sean C. Farley 2012-03-05 20:36:33 -05:00
parent 02b2020995
commit c3cb70ac96

View File

@ -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):
"""