mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
don't expose fields for GET and DELETE - leaving room for parameters like e.g. filter or paginate
This commit is contained in:
parent
a91841f7fe
commit
1154c12b33
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user