aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/routers.py
diff options
context:
space:
mode:
authorTom Christie2013-06-21 14:23:40 -0700
committerTom Christie2013-06-21 14:23:40 -0700
commit8b0d4115c6059b00cdecddbd684bfe83063a9fe8 (patch)
treeb785762129adce04ea5725560f54b1fa7d27aa43 /rest_framework/routers.py
parent2d5f7f201ffcc8c371e9f36821c2ae0e13dcecca (diff)
parentfa9f5fb8dcf6d51b2db70d4e2a991779b056d1d4 (diff)
downloaddjango-rest-framework-8b0d4115c6059b00cdecddbd684bfe83063a9fe8.tar.bz2
Merge pull request #941 from FreakyDug/master
Fixed a couple of small problems I found when using the action decorator.
Diffstat (limited to 'rest_framework/routers.py')
-rw-r--r--rest_framework/routers.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/routers.py b/rest_framework/routers.py
index 2a26f6a7..c222f504 100644
--- a/rest_framework/routers.py
+++ b/rest_framework/routers.py
@@ -136,6 +136,7 @@ class SimpleRouter(BaseRouter):
attr = getattr(viewset, methodname)
httpmethods = getattr(attr, 'bind_to_methods', None)
if httpmethods:
+ httpmethods = [method.lower() for method in httpmethods]
dynamic_routes.append((httpmethods, methodname))
ret = []