2
0
Эх сурвалжийг харах

12151 remove choice field str mapping for OpenAPI

Arthur 3 жил өмнө
parent
commit
56d2a9aa11

+ 0 - 1
netbox/netbox/api/fields.py

@@ -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.