  
          return response
  
  
  class RequestPOSTMiddleware(object):
      def __init__(self, get_response):
          self.get_response = get_response
  
      def __call__(self, request):
          assert isinstance(request, HttpRequest)
 
</s> remove class RequestUserMiddleware(object):
 </s> add class RequestUserMiddleware: </s> remove class InclusiveFilterBackend(object):
 </s> add class InclusiveFilterBackend: </s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove         response = super(APIClient, self).delete(
 </s> add         response = super().delete( </s> remove         response = super(APIClient, self).put(
 </s> add         response = super().put(
class RequestPOSTMiddleware:
  
          return response
  
  
class RequestPOSTMiddleware:
      def __init__(self, get_response):
          self.get_response = get_response
  
      def __call__(self, request):
          assert isinstance(request, HttpRequest)
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_middleware.py