              return
  
          queryset = view.get_queryset()
          elements = []
          for backend in view.filter_backends:
              if hasattr(backend, 'to_html'):
                  html = backend().to_html(request, queryset, view)
 
</s> remove     def get_filter_form(self, view, request):
 </s> add     def get_filter_form(self, data, view, request): </s> remove             'filter_form': self.get_filter_form(view, request),
 </s> add             'filter_form': self.get_filter_form(data, view, request),
        # Infer if this is a list view or not.
        paginator = getattr(view, 'paginator', None)
        if (paginator is not None and data is not None):
            try:
                paginator.get_results(data)
            except (TypeError, KeyError):
                return
        elif not isinstance(data, list):
            return

              return
  
        # Infer if this is a list view or not.
        paginator = getattr(view, 'paginator', None)
        if (paginator is not None and data is not None):
            try:
                paginator.get_results(data)
            except (TypeError, KeyError):
                return
        elif not isinstance(data, list):
            return

          queryset = view.get_queryset()
          elements = []
          for backend in view.filter_backends:
              if hasattr(backend, 'to_html'):
                  html = backend().to_html(request, queryset, view)
keep add keep keep keep keep keep
 Don't display filter control on detail views 
rest_framework/renderers.py