aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorOscar Vilaplana2013-05-23 08:26:55 +0200
committerOscar Vilaplana2013-05-23 08:26:55 +0200
commita1deb5eac7d6d00c6269d88fce1cc6818d8ec04a (patch)
tree2be93e2cd91707f99e409211073ecced428a6d27 /rest_framework/views.py
parentdea0b6ab7fcf8eb9ffebbe7720e4923df7f3c5a4 (diff)
downloaddjango-rest-framework-a1deb5eac7d6d00c6269d88fce1cc6818d8ec04a.tar.bz2
simplified, moved field humanizing to Field. broken tests
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index 5f9e1bf2..d1afbe89 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -91,7 +91,7 @@ class APIView(View):
continue
serializer = self.get_serializer()
if serializer is not None:
- actions[method] = humanize_form_fields(serializer)
+ actions[method] = serializer.humanized
except exceptions.PermissionDenied:
# don't add this method
pass