mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +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
|
||||
HTTP method. Used for checking permissions against other methods.
|
||||
"""
|
||||
ret = Request(request=request._request,
|
||||
ret = Request(request=request,
|
||||
parsers=request.parsers,
|
||||
authenticators=request.authenticators,
|
||||
negotiator=request.negotiator,
|
||||
|
|
Loading…
Reference in New Issue
Block a user