      """
      empty_error = u"Empty list and '%(class_name)s.allow_empty' is False."
  
      def list(self, request, *args, **kwargs):
          self.object_list = self.get_queryset()
  
          # Default is to allow empty querysets.  This can be altered by setting
          # `.allow_empty = False`, to raise 404 errors on empty querysets.
          allow_empty = self.get_allow_empty()
          if not allow_empty and len(self.object_list) == 0:
 
</s> remove         Create 26 BasicModel intances.
 </s> add         Create 26 BasicModel instances. </s> remove from rest_framework.tests.models import BasicModel
 </s> add from rest_framework.tests.models import BasicModel, FilterableItem
import django_filters </s> remove Generic views that provide commmonly needed behaviour.
 </s> add Generic views that provide commonly needed behaviour.
        self.object_list = self.get_filtered_queryset()
      """
      empty_error = u"Empty list and '%(class_name)s.allow_empty' is False."
  
      def list(self, request, *args, **kwargs):
        self.object_list = self.get_filtered_queryset()
  
          # Default is to allow empty querysets.  This can be altered by setting
          # `.allow_empty = False`, to raise 404 errors on empty querysets.
          allow_empty = self.get_allow_empty()
          if not allow_empty and len(self.object_list) == 0:
keep keep keep keep replace keep keep keep keep keep
 First attempt at adding filter support.

The filter support uses django-filter to work its magic. 
rest_framework/mixins.py