From 1154c12b3389c3098ee8755887f785da43666ec4 Mon Sep 17 00:00:00 2001 From: Nikolaus Schlemm Date: Sun, 19 May 2013 11:37:12 +0200 Subject: [PATCH] don't expose fields for GET and DELETE - leaving room for parameters like e.g. filter or paginate --- rest_framework/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rest_framework/views.py b/rest_framework/views.py index 6348ca885..c9d55c18e 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