mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Use enhanced request when cloning requests for checking permissions on other methods. Fixes #2455
This commit is contained in:
parent
0ee2edc0a1
commit
ed04725822
|
@ -86,7 +86,7 @@ def clone_request(request, method):
|
||||||
Internal helper method to clone a request, replacing with a different
|
Internal helper method to clone a request, replacing with a different
|
||||||
HTTP method. Used for checking permissions against other methods.
|
HTTP method. Used for checking permissions against other methods.
|
||||||
"""
|
"""
|
||||||
ret = Request(request=request._request,
|
ret = Request(request=request,
|
||||||
parsers=request.parsers,
|
parsers=request.parsers,
|
||||||
authenticators=request.authenticators,
|
authenticators=request.authenticators,
|
||||||
negotiator=request.negotiator,
|
negotiator=request.negotiator,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user