aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/request.py
diff options
context:
space:
mode:
authorAndrew Fong2014-08-16 23:22:18 +0000
committerAndrew Fong2014-08-16 23:22:18 +0000
commit21cbf3484e04bb015c1921307cdf0306a81e571d (patch)
treeef8072f2c16097d280239092d414e1531bebf5c0 /rest_framework/request.py
parent5f63d31b002020148c526f2d5ec27f723a06f2e9 (diff)
downloaddjango-rest-framework-21cbf3484e04bb015c1921307cdf0306a81e571d.tar.bz2
Fixed action_map being pulled from wrong object
Diffstat (limited to 'rest_framework/request.py')
-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 1ea61586..735a9288 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -46,7 +46,7 @@ class override_method(object):
def __enter__(self):
self.view.request = clone_request(self.request, self.method)
- action_map = getattr(self, 'action_map', {})
+ action_map = getattr(self.view, 'action_map', {})
self.view.action = action_map.get(self.method.lower())
return self.view.request