enable doc fields in GET requisitions

This commit is contained in:
Lucas Paim 2017-05-11 11:33:22 -03:00
parent cc119d6d3d
commit afabebcaab

View File

@ -564,7 +564,7 @@ class SchemaGenerator(object):
Return a list of `coreapi.Field` instances corresponding to any Return a list of `coreapi.Field` instances corresponding to any
request body input, as determined by the serializer class. request body input, as determined by the serializer class.
""" """
if method not in ('PUT', 'PATCH', 'POST'): if method not in ('PUT', 'GET', 'PATCH', 'POST'):
return [] return []
if not hasattr(view, 'get_serializer'): if not hasattr(view, 'get_serializer'):