          'anon': None,
      },
      'PAGINATE_BY': None,
  
      'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
      'UNAUTHENTICATED_TOKEN': None,
  
 
</s> remove     @unittest.skip('can\'t pass because view is a simple Django view and response is an ImmediateResponse')
    def test_unsatisfiable_accept_header_on_request_returns_406_status(self):
        """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response."""
        resp = self.client.get('/', HTTP_ACCEPT='foo/bar')
        self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE)

 </s> add  </s> remove         fields = ['text', 'decimal', 'date']
 </s> add         filter_fields = ['decimal', 'date'] </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):
    'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend',
          'anon': None,
      },
      'PAGINATE_BY': None,
    'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend',
  
      'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser',
      'UNAUTHENTICATED_TOKEN': None,
  
keep keep add keep keep keep keep
 Make filtering optional, and pluggable. 
rest_framework/settings.py