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

Tweaked ChoiceFieldSerializer to display a field as (value, label)

This commit is contained in:
Jeremy Stretch
2017-02-16 14:37:21 -05:00
parent b71566f206
commit 21281789e0
2 changed files with 5 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ class RackSerializer(CustomFieldModelSerializer):
tenant = NestedTenantSerializer()
role = NestedRackRoleSerializer()
type = ChoiceFieldSerializer(choices=RACK_TYPE_CHOICES)
# width = ChoiceFieldSerializer(choices=RACK_WIDTH_CHOICES)
width = ChoiceFieldSerializer(choices=RACK_WIDTH_CHOICES)
class Meta:
model = Rack