mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Improve OPTIONS descriptions for lists dicts and nested serializers
This commit is contained in:
parent
21ec3b506a
commit
8d69c4c068
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user