mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
[FIX] add missing DurationField to SimpleMetada label_lookup (#8702)
This commit is contained in:
parent
751808c59b
commit
dc300aa4e0
|
@ -48,6 +48,7 @@ class SimpleMetadata(BaseMetadata):
|
||||||
serializers.DateField: 'date',
|
serializers.DateField: 'date',
|
||||||
serializers.DateTimeField: 'datetime',
|
serializers.DateTimeField: 'datetime',
|
||||||
serializers.TimeField: 'time',
|
serializers.TimeField: 'time',
|
||||||
|
serializers.DurationField: 'duration',
|
||||||
serializers.ChoiceField: 'choice',
|
serializers.ChoiceField: 'choice',
|
||||||
serializers.MultipleChoiceField: 'multiple choice',
|
serializers.MultipleChoiceField: 'multiple choice',
|
||||||
serializers.FileField: 'file upload',
|
serializers.FileField: 'file upload',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user