mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-30 13:34:00 +03:00
Merge branch 'issue-192-expose-fields-for-options' of github.com:nschlemm/django-rest-framework into issue-192-expose-fields-for-options
This commit is contained in:
commit
19f838f655
|
@ -79,7 +79,14 @@ class APIView(View):
|
||||||
try:
|
try:
|
||||||
self.check_permissions(cloned_request)
|
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
|
# TODO: find right placement - APIView does not have get_serializer
|
||||||
|
if not hasattr(self, 'get_serializer'):
|
||||||
|
continue
|
||||||
serializer = self.get_serializer()
|
serializer = self.get_serializer()
|
||||||
if serializer is not None:
|
if serializer is not None:
|
||||||
field_name_types = {}
|
field_name_types = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user