mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
nit: rename variable request as is holds a response
This commit is contained in:
parent
bb133522ef
commit
da5085cbac
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user