This commit is contained in:
David Guaraglia 2012-08-25 11:56:26 -07:00
commit 120402306c

View File

@ -220,8 +220,9 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
self._check_permissions() self._check_permissions()
# Get the appropriate handler method # Get the appropriate handler method
if self.method.lower() in self.http_method_names: method_name = self.method.lower()
handler = getattr(self, self.method.lower(), self.http_method_not_allowed) if method_name in self.http_method_names:
handler = getattr(self, method_name, self.http_method_not_allowed)
else: else:
handler = self.http_method_not_allowed handler = self.http_method_not_allowed