  
      class FilterClassRootView(generics.ListCreateAPIView):
          model = FilterableItem
          filter_class = SeveralFieldsFilter
          filter_backend = filters.DjangoFilterBackend
  
      # These classes are used to test a misconfigured filter class.
      class MisconfiguredFilter(django_filters.FilterSet):
          text = django_filters.CharFilter(lookup_type='icontains')
  
 
</s> remove         filter_backend = filters.DjangoFilterBackend
 </s> add         filter_backends = (filters.DjangoFilterBackend,) </s> remove         response = self.instance_view(request, pk=1).render()
 </s> add         response = instance_view(request, pk=1).render()
        filter_backends = (filters.DjangoFilterBackend,)
  
      class FilterClassRootView(generics.ListCreateAPIView):
          model = FilterableItem
          filter_class = SeveralFieldsFilter
        filter_backends = (filters.DjangoFilterBackend,)
  
      # These classes are used to test a misconfigured filter class.
      class MisconfiguredFilter(django_filters.FilterSet):
          text = django_filters.CharFilter(lookup_type='icontains')
  
keep keep keep keep replace keep keep keep keep keep
 Fix PendingDeprecation warnings in tests 
rest_framework/tests/filters.py