1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Cable.status to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-12-10 09:55:10 -05:00
parent 086813fc3e
commit 12657ebd7c
8 changed files with 55 additions and 13 deletions

View File

@@ -585,7 +585,7 @@ class CableSerializer(ValidatedModelSerializer):
)
termination_a = serializers.SerializerMethodField(read_only=True)
termination_b = serializers.SerializerMethodField(read_only=True)
status = ChoiceField(choices=CONNECTION_STATUS_CHOICES, required=False)
status = ChoiceField(choices=CableStatusChoices, required=False)
length_unit = ChoiceField(choices=CableLengthUnitChoices, required=False, allow_null=True)
class Meta: