      class DecimalFilter(django_filters.FilterSet):
          decimal = django_filters.NumberFilter(lookup_type='lt')
  
  
      class FilterFieldsRootView(generics.ListCreateAPIView):
          model = FilterableItem
          paginate_by = 10
 
</s> remove class DecimalFilter(django_filters.FilterSet):
    decimal = django_filters.NumberFilter(lookup_type='lt')
    class Meta:
        model = FilterableItem
        fields = ['text', 'decimal', 'date']
 </s> add if django_filters:
    class DecimalFilter(django_filters.FilterSet):
        decimal = django_filters.NumberFilter(lookup_type='lt') </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 class are used to test a filter class.
class SeveralFieldsFilter(django_filters.FilterSet):
    text = django_filters.CharFilter(lookup_type='icontains')
    decimal = django_filters.NumberFilter(lookup_type='lt')
    date = django_filters.DateFilter(lookup_type='gt')
    class Meta:
 </s> add if django_filters:
    # Basic filter on a list view.
    class FilterFieldsRootView(generics.ListCreateAPIView): </s> remove         fields = ['text', 'decimal', 'date']
 </s> add         filter_fields = ['decimal', 'date']
        class Meta:
            model = FilterableItem
            fields = ['text', 'decimal', 'date']
      class DecimalFilter(django_filters.FilterSet):
          decimal = django_filters.NumberFilter(lookup_type='lt')
  
        class Meta:
            model = FilterableItem
            fields = ['text', 'decimal', 'date']
  
      class FilterFieldsRootView(generics.ListCreateAPIView):
          model = FilterableItem
          paginate_by = 10
keep keep add keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/pagination.py