mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 19:36:26 -06:00
12151 remove choice field str mapping for OpenAPI
This commit is contained in:
parent
6b54afddc3
commit
8afec2708b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user