From 32a0b62508fc6a83bc7fd80d362d67ca35b603f9 Mon Sep 17 00:00:00 2001 From: Lim H Date: Sat, 12 Aug 2017 18:59:03 +0100 Subject: [PATCH] Fix introspection of list field in schema --- 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 875f9454b..437413355 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -30,7 +30,7 @@ def field_to_schema(field): title = force_text(field.label) if field.label else '' description = force_text(field.help_text) if field.help_text else '' - if isinstance(field, serializers.ListSerializer): + if isinstance(field, (serializers.ListSerializer, serializers.ListField)): child_schema = field_to_schema(field.child) return coreschema.Array( items=child_schema,