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

Convert RACK_WIDTH_CHOICES to ChoiceSet

This commit is contained in:
Jeremy Stretch
2019-11-15 21:33:56 -05:00
parent 8d27b62114
commit 07aa036fe8
5 changed files with 16 additions and 16 deletions

View File

@@ -118,7 +118,7 @@ class RackSerializer(TaggitSerializer, CustomFieldModelSerializer):
status = ChoiceField(choices=RACK_STATUS_CHOICES, required=False)
role = NestedRackRoleSerializer(required=False, allow_null=True)
type = ChoiceField(choices=RackTypeChoices, required=False, allow_null=True)
width = ChoiceField(choices=RACK_WIDTH_CHOICES, required=False)
width = ChoiceField(choices=RackWidthChoices, required=False)
outer_unit = ChoiceField(choices=RACK_DIMENSION_UNIT_CHOICES, required=False)
tags = TagListSerializerField(required=False)
device_count = serializers.IntegerField(read_only=True)