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:
Oscar Vilaplana 2013-05-19 13:46:46 +02:00
commit 19f838f655

View File

@ -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 = {}