      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='foo')
  
  
  class ExclusiveFilterBackend(object):
      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='other')
  
  
  class TwoFieldModel(models.Model):
 
</s> remove class InclusiveFilterBackend(object):
 </s> add class InclusiveFilterBackend: </s> remove class BaseThrottle(object):
 </s> add class BaseThrottle: </s> remove         if isinstance(ordering, six.string_types):
 </s> add         if isinstance(ordering, str): </s> remove @six.add_metaclass(BasePermissionMetaclass)
class BasePermission(object):
 </s> add class BasePermission(metaclass=BasePermissionMetaclass): </s> remove         return super(ScopedRateThrottle, self).allow_request(request, view)
 </s> add         return super().allow_request(request, view)
class ExclusiveFilterBackend:
      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='foo')
  
  
class ExclusiveFilterBackend:
      def filter_queryset(self, request, queryset, view):
          return queryset.filter(text='other')
  
  
  class TwoFieldModel(models.Model):
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> 
tests/test_generics.py