Fixed action_map being pulled from wrong object

This commit is contained in:
Andrew Fong 2014-08-16 23:22:18 +00:00
parent 5f63d31b00
commit 21cbf3484e

View File

@ -46,7 +46,7 @@ class override_method(object):
def __enter__(self): def __enter__(self):
self.view.request = clone_request(self.request, self.method) 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()) self.view.action = action_map.get(self.method.lower())
return self.view.request return self.view.request