diff options
| author | Oscar Vilaplana | 2013-05-19 13:46:46 +0200 |
|---|---|---|
| committer | Oscar Vilaplana | 2013-05-19 13:46:46 +0200 |
| commit | 19f838f6559a6a846520f73d2d3af78c977d9959 (patch) | |
| tree | a11678f8fd04b7d8a5b686611062d3bdf025a2aa /rest_framework/views.py | |
| parent | 08e9e2042c99cde66721a22475df6e084a06e3d2 (diff) | |
| parent | 1154c12b3389c3098ee8755887f785da43666ec4 (diff) | |
| download | django-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.py | 7 |
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 = {} |
