aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorOscar Vilaplana2013-05-19 13:46:46 +0200
committerOscar Vilaplana2013-05-19 13:46:46 +0200
commit19f838f6559a6a846520f73d2d3af78c977d9959 (patch)
treea11678f8fd04b7d8a5b686611062d3bdf025a2aa /rest_framework/views.py
parent08e9e2042c99cde66721a22475df6e084a06e3d2 (diff)
parent1154c12b3389c3098ee8755887f785da43666ec4 (diff)
downloaddjango-rest-framework-19f838f6559a6a846520f73d2d3af78c977d9959.tar.bz2
Merge branch 'issue-192-expose-fields-for-options' of github.com:nschlemm/django-rest-framework into issue-192-expose-fields-for-options
Diffstat (limited to 'rest_framework/views.py')
-rw-r--r--rest_framework/views.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rest_framework/views.py b/rest_framework/views.py
index e8bd9f50..c9d55c18 100644
--- a/rest_framework/views.py
+++ b/rest_framework/views.py
@@ -79,7 +79,14 @@ 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
serializer = self.get_serializer()
if serializer is not None:
field_name_types = {}