mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
enable doc fields in GET requisitions
This commit is contained in:
parent
cc119d6d3d
commit
afabebcaab
|
@ -564,7 +564,7 @@ class SchemaGenerator(object):
|
|||
Return a list of `coreapi.Field` instances corresponding to any
|
||||
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 []
|
||||
|
||||
if not hasattr(view, 'get_serializer'):
|
||||
|
|
Loading…
Reference in New Issue
Block a user