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

This commit is contained in:
Nikolaus Schlemm 2013-05-19 11:37:12 +02:00
parent a91841f7fe
commit 1154c12b33

View File

@ -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