          model = BasicModel
          fields = ['text']
  
  
  class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
      model = FilterableItem
      filter_class = MisconfiguredFilter
  
  
  class IntegrationTestFiltering(TestCase):
      """
      Integration tests for filtered list views.
 
</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') </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 FilterClassRootView(generics.ListCreateAPIView):
    model = FilterableItem
    filter_class = SeveralFieldsFilter
 </s> add         class Meta:
            model = FilterableItem
            fields = ['text', 'decimal', 'date']
    class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
        model = FilterableItem
        filter_class = MisconfiguredFilter
          model = BasicModel
          fields = ['text']
  
  
    class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
        model = FilterableItem
        filter_class = MisconfiguredFilter
    class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
        model = FilterableItem
        filter_class = MisconfiguredFilter
    class IncorrectlyConfiguredRootView(generics.ListCreateAPIView):
        model = FilterableItem
        filter_class = MisconfiguredFilter
  
  
  class IntegrationTestFiltering(TestCase):
      """
      Integration tests for filtered list views.
keep keep keep keep replace replace replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py