nit: rename variable request as is holds a response

This commit is contained in:
Paul Morelle 2020-11-27 08:46:12 +01:00
parent bb133522ef
commit da5085cbac
No known key found for this signature in database
GPG Key ID: 26660C41AFE284B5

View File

@ -234,9 +234,9 @@ class APIRequestFactory(DjangoRequestFactory):
method, path, data, content_type, secure, **extra) method, path, data, content_type, secure, **extra)
def request(self, **kwargs): def request(self, **kwargs):
request = super().request(**kwargs) response = super().request(**kwargs)
request._dont_enforce_csrf_checks = not self.enforce_csrf_checks response._dont_enforce_csrf_checks = not self.enforce_csrf_checks
return request return response
class ForceAuthClientHandler(ClientHandler): class ForceAuthClientHandler(ClientHandler):