aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorNikolaus Schlemm2013-05-19 11:37:12 +0200
committerNikolaus Schlemm2013-05-19 11:37:12 +0200
commit1154c12b3389c3098ee8755887f785da43666ec4 (patch)
tree1f0b6d889e840906f7c4152534a79e4a4b564835 /rest_framework/views.py
parenta91841f7fe91f79a18a1f4f0352ec3e07f389a0a (diff)
downloaddjango-rest-framework-1154c12b3389c3098ee8755887f785da43666ec4.tar.bz2
don't expose fields for GET and DELETE - leaving room for parameters like e.g. filter or paginate
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index 6348ca88..c9d55c18 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -79,6 +79,11 @@ class APIView(View):
try:
self.check_permissions(cloned_request)
+ # TODO: discuss whether and how to expose parameters like e.g. filter or paginate
+ if method in ('GET', 'DELETE'):
+ actions[method] = {}
+ continue
+
# TODO: find right placement - APIView does not have get_serializer
if not hasattr(self, 'get_serializer'):
continue