diff options
| author | Brandon Cazander | 2015-01-24 01:44:40 -0800 |
|---|---|---|
| committer | Brandon Cazander | 2015-01-24 01:44:40 -0800 |
| commit | ed04725822d5dc9a90c9c6e5c14d85083ae6ff28 (patch) | |
| tree | e14c958a53e26e91022f005b7ab405373ae4c96f /rest_framework/request.py | |
| parent | 0ee2edc0a14c4d14b8aa6e4b63ccbd0c2cc78024 (diff) | |
| download | django-rest-framework-ed04725822d5dc9a90c9c6e5c14d85083ae6ff28.tar.bz2 | |
Use enhanced request when cloning requests for checking permissions on other methods. Fixes #2455
Diffstat (limited to 'rest_framework/request.py')
| -rw-r--r-- | rest_framework/request.py | 2 |
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, |
