Commit 1154c12b by Nikolaus Schlemm

don't expose fields for GET and DELETE - leaving room for parameters like e.g. filter or paginate

parent a91841f7
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment