fix: middleware get_response parameter deprecation (#33098)

This commit is contained in:
Irtaza Akram
2023-08-25 14:59:08 +05:00
committed by GitHub
parent 0c46334636
commit ff03d5920b

View File

@@ -18,7 +18,7 @@ class AuthenticationMiddleware(MiddlewareMixin):
See https://docs.pact.io/faq#how-do-i-test-oauth-or-other-security-headers
"""
def __init__(self, get_response):
super().__init__()
super().__init__(get_response)
username = getattr(settings, 'MOCK_USERNAME', 'Mock User')
self.auth_user = UserFactory.create(username=username)