aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorBrandon Cazander2015-01-24 01:44:40 -0800
committerBrandon Cazander2015-01-24 01:44:40 -0800
commited04725822d5dc9a90c9c6e5c14d85083ae6ff28 (patch)
treee14c958a53e26e91022f005b7ab405373ae4c96f /rest_framework
parent0ee2edc0a14c4d14b8aa6e4b63ccbd0c2cc78024 (diff)
downloaddjango-rest-framework-ed04725822d5dc9a90c9c6e5c14d85083ae6ff28.tar.bz2
Use enhanced request when cloning requests for checking permissions on other methods. Fixes #2455
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index cfbbdecc..d5b56ada 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -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,