Improve OPTIONS descriptions for lists dicts and nested serializers

This commit is contained in:
Tom Christie 2015-07-02 12:55:42 +01:00
parent 21ec3b506a
commit 8d69c4c068

View File

@ -53,6 +53,9 @@ class SimpleMetadata(BaseMetadata):
serializers.MultipleChoiceField: 'multiple choice', serializers.MultipleChoiceField: 'multiple choice',
serializers.FileField: 'file upload', serializers.FileField: 'file upload',
serializers.ImageField: 'image upload', serializers.ImageField: 'image upload',
serializers.ListField: 'list',
serializers.DictField: 'nested object',
serializers.Serializer: 'nested object',
}) })
def determine_metadata(self, request, view): def determine_metadata(self, request, view):