From afabebcaab38b643507a40a2b4c05c37e7773ee2 Mon Sep 17 00:00:00 2001 From: Lucas Paim Date: Thu, 11 May 2017 11:33:22 -0300 Subject: [PATCH] enable doc fields in GET requisitions --- rest_framework/schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index ce90b437e..ffaaa0f30 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -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'):