Преглед изворни кода

12151 remove choice field str mapping for OpenAPI

Arthur пре 3 година
родитељ
комит
56d2a9aa11
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      netbox/netbox/api/fields.py

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