      """
  
      pagination_serializer_class = api_settings.DEFAULT_PAGINATION_SERIALIZER_CLASS
      paginate_by = api_settings.PAGINATE_BY
      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
  
      def filter_queryset(self, queryset):
          filter_class = self.get_filter_class()
  
          if filter_class:
 
</s> remove         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
 </s> add         if not self.filter_backend:
            return queryset
        backend = self.filter_backend()
        return backend.filter_queryset(self.request, queryset, self) </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 class FilterFieldsRootView(generics.ListCreateAPIView):
    model = FilterableItem
    paginate_by = 10
    filter_class = DecimalFilter
 </s> add     class FilterFieldsRootView(generics.ListCreateAPIView):
        model = FilterableItem
        paginate_by = 10
        filter_class = DecimalFilter </s> remove # These classes are used to test a misconfigured filter class.
class MisconfiguredFilter(django_filters.FilterSet):
    text = django_filters.CharFilter(lookup_type='icontains')
    class Meta:
        model = BasicModel
        fields = ['text']
 </s> add     # These classes are used to test a misconfigured filter class.
    class MisconfiguredFilter(django_filters.FilterSet):
        text = django_filters.CharFilter(lookup_type='icontains')
    filter_backend = api_settings.FILTER_BACKEND
      """
  
      pagination_serializer_class = api_settings.DEFAULT_PAGINATION_SERIALIZER_CLASS
      paginate_by = api_settings.PAGINATE_BY
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
    filter_backend = api_settings.FILTER_BACKEND
  
      def filter_queryset(self, queryset):
          filter_class = self.get_filter_class()
  
          if filter_class:
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/generics.py