12151 remove choice field str mapping for OpenAPI

This commit is contained in:
Arthur 2023-04-03 11:39:38 -07:00
parent 872b70c2b5
commit 9aeb213a55

View File

@ -14,7 +14,6 @@ __all__ = (
)
@extend_schema_field(OpenApiTypes.STR)
class ChoiceField(serializers.Field):
"""
Represent a ChoiceField as {'value': <DB value>, 'label': <string>}. Accepts a single value on write.