From 8d69c4c068a11d8b6ce1003d21e4640d5432b047 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 2 Jul 2015 12:55:42 +0100 Subject: [PATCH] Improve OPTIONS descriptions for lists dicts and nested serializers --- rest_framework/metadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest_framework/metadata.py b/rest_framework/metadata.py index 3c7b3d2ab..14d41b979 100644 --- a/rest_framework/metadata.py +++ b/rest_framework/metadata.py @@ -53,6 +53,9 @@ class SimpleMetadata(BaseMetadata): serializers.MultipleChoiceField: 'multiple choice', serializers.FileField: 'file upload', serializers.ImageField: 'image upload', + serializers.ListField: 'list', + serializers.DictField: 'nested object', + serializers.Serializer: 'nested object', }) def determine_metadata(self, request, view):