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)
|
||||
|
||||
def request(self, **kwargs):
|
||||
request = super().request(**kwargs)
|
||||
request._dont_enforce_csrf_checks = not self.enforce_csrf_checks
|
||||
return request
|
||||
response = super().request(**kwargs)
|
||||
response._dont_enforce_csrf_checks = not self.enforce_csrf_checks
|
||||
return response
|
||||
|
||||
|
||||
class ForceAuthClientHandler(ClientHandler):
|
||||
|
|
Loading…
Reference in New Issue
Block a user