tomchristie/django-rest-framework — pull request #221 by scfarley (2012-06-29 20:33:13+00:00)
Title: Use the get_queryset from a resource if available

If a resource overrides the default get_queryset(), then
ModelMixin-based classes should use it instead of returning all objects
of the model of the resource.

The new order of returning a queryset is:
1. self._resource.get_queryset()
2. self.resource.queryset
3. self.resource.model.objects.all()

I ran into this issue after closing pull request #183 and overriding the get_queryset() for resources. That works unless a view uses ListModelMixin which will only use its get_queryset() from ModelMixin.