  
          return None
  
      def filter_queryset(self, queryset):
          filter_class = self.get_filter_class()
  
          if filter_class:
              assert issubclass(filter_class.Meta.model, self.model), \
                  "%s is not a subclass of %s" % (filter_class.Meta.model, self.model)
              return filter_class(self.request.GET, queryset=queryset)
  
          return queryset
  
      def get_filtered_queryset(self):
          return self.filter_queryset(self.get_queryset())
  
      def get_pagination_serializer_class(self):
 
</s> remove     filter_class = None
    filter_fields = None

    def get_filter_class(self):
        """
        Return the django-filters `FilterSet` used to filter the queryset.
        """
        if self.filter_class:
            return self.filter_class

        if self.filter_fields:
            class AutoFilterSet(django_filters.FilterSet):
                class Meta:
                    model = self.model
                fields = self.filter_fields
            return AutoFilterSet

        return None
 </s> add     filter_backend = api_settings.FILTER_BACKEND </s> remove         relative_url = '?%s=%d' % (self.page_field, page)
        if request:
            for field, value in request.QUERY_PARAMS.iteritems():
                if field != self.page_field:
                    relative_url += '&%s=%s' % (field, value)
            return request.build_absolute_uri(relative_url)
        return relative_url
 </s> add         url = request and request.get_full_path() or ''
        return replace_query_param(url, self.page_field, page) </s> remove         relative_url = '?%s=%d' % (self.page_field, page)
        if request:
            for field, value in request.QUERY_PARAMS.iteritems():
                if field != self.page_field:
                    relative_url += '&%s=%s' % (field, value)
            return request.build_absolute_uri(relative_url)
        return relative_url
 </s> add         url = request and request.get_full_path() or ''
        return replace_query_param(url, self.page_field, page) </s> remove import unittest
try:
    import unittest.skip
except ImportError:  # python < 2.7
    from unittest import TestCase
    import functools

    def skip(reason):
        # Pasted from py27/lib/unittest/case.py
        """
        Unconditionally skip a test.
        """
        def decorator(test_item):
            if not (isinstance(test_item, type) and issubclass(test_item, TestCase)):
                @functools.wraps(test_item)
                def skip_wrapper(*args, **kwargs):
                    pass
                test_item = skip_wrapper

            test_item.__unittest_skip__ = True
            test_item.__unittest_skip_why__ = reason
            return test_item
        return decorator

    unittest.skip = skip


 </s> add 
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
  
          return None
  
      def filter_queryset(self, queryset):
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
        if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self)
  
      def get_filtered_queryset(self):
          return self.filter_queryset(self.get_queryset())
  
      def get_pagination_serializer_class(self):
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/generics.py