          return self.get_default_ordering(view)
  
      def get_default_ordering(self, view):
          ordering = getattr(view, 'ordering', None)
          if isinstance(ordering, six.string_types):
              return (ordering,)
          return ordering
  
      def get_default_valid_fields(self, queryset, view, context={}):
          # If `ordering_fields` is not specified, then we determine a default
 
</s> remove         super(SimpleRouter, self).__init__()
 </s> add         super().__init__() </s> remove class ExclusiveFilterBackend(object):
 </s> add class ExclusiveFilterBackend: </s> remove         return super(ScopedRateThrottle, self).allow_request(request, view)
 </s> add         return super().allow_request(request, view) </s> remove         if output_format is None or isinstance(value, six.string_types):
 </s> add         if output_format is None or isinstance(value, str): </s> remove         if isinstance(ret, six.text_type):
 </s> add         if isinstance(ret, str):
        if isinstance(ordering, str):
          return self.get_default_ordering(view)
  
      def get_default_ordering(self, view):
          ordering = getattr(view, 'ordering', None)
        if isinstance(ordering, str):
              return (ordering,)
          return ordering
  
      def get_default_valid_fields(self, queryset, view, context={}):
          # If `ordering_fields` is not specified, then we determine a default
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/filters.py