diff options
| author | Nikolaus Schlemm | 2013-05-19 11:37:12 +0200 |
|---|---|---|
| committer | Nikolaus Schlemm | 2013-05-19 11:37:12 +0200 |
| commit | 1154c12b3389c3098ee8755887f785da43666ec4 (patch) | |
| tree | 1f0b6d889e840906f7c4152534a79e4a4b564835 /rest_framework/views.py | |
| parent | a91841f7fe91f79a18a1f4f0352ec3e07f389a0a (diff) | |
| download | django-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.py | 5 |
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 |
