DurationField missing in SimpleMetadata.label_lookup #8696
-
Context:I made an HTTP OPTIONS request. In the response I have the type of each field. I have a duration field so I expected to see something like "duration" as type but instead I have "field". Solution:After investigation I found that This is probably due to the fact The following line should be added to django-rest-framework/rest_framework/metadata.py Lines 36 to 58 in 20d347a django-rest-framework/rest_framework/fields.py Lines 1320 to 1349 in 20d347a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems like you've got this one sorted. |
Beta Was this translation helpful? Give feedback.
Seems like you've got this one sorted.
Thanks for the detailed description.
Welcome to make a pull request.