      model = BasicModel
      paginate_by = 10
  
  
  class IntegrationTestPagination(TestCase):
      """
      Integration tests for paginated list views.
      """
 
</s> remove         Create 26 BasicModel intances.
 </s> add         Create 26 BasicModel instances. </s> remove         self.object_list = self.get_queryset()
 </s> add         self.object_list = self.get_filtered_queryset() </s> remove 
 </s> add import django_filters </s> remove from rest_framework.tests.models import BasicModel
 </s> add from rest_framework.tests.models import BasicModel, FilterableItem
import django_filters
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
    filter_class = DecimalFilter


      model = BasicModel
      paginate_by = 10
  
  
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
    filter_class = DecimalFilter


  class IntegrationTestPagination(TestCase):
      """
      Integration tests for paginated list views.
      """
keep keep keep add keep keep keep keep
 First attempt at adding filter support.

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