aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/views.py
diff options
context:
space:
mode:
authorÒscar Vilaplana2013-05-19 05:00:01 -0700
committerÒscar Vilaplana2013-05-19 05:00:01 -0700
commit2a004545173bb24bea83845186b79c710d9a8d01 (patch)
treee2468650b21d5e151cabab21c56995291394caa2 /rest_framework/views.py
parent08e9e2042c99cde66721a22475df6e084a06e3d2 (diff)
parentb07cfdcf54961dc44604c6b87e2cc339901038a3 (diff)
downloaddjango-rest-framework-2a004545173bb24bea83845186b79c710d9a8d01.tar.bz2
Merge pull request #2 from nschlemm/issue-192-expose-fields-for-options
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 = {}