  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework import generics, status
  from rest_framework.tests.models import FilterableItem, BasicModel
  import django_filters
  
  factory = RequestFactory()
  
  # Basic filter on a list view.
  class FilterFieldsRootView(generics.ListCreateAPIView):
 
</s> remove import django_filters
 </s> add 
  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework import generics, status
  from rest_framework.tests.models import FilterableItem, BasicModel

  
  factory = RequestFactory()
  
  # Basic filter on a list view.
  class FilterFieldsRootView(generics.ListCreateAPIView):
keep keep keep keep replace keep keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/tests/filterset.py