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

#10371: Fix API serializer representation for module status

This commit is contained in:
jeremystretch
2022-12-12 16:14:18 -05:00
parent 758030733c
commit e338f7cfe3

View File

@@ -696,6 +696,7 @@ class ModuleSerializer(NetBoxModelSerializer):
device = NestedDeviceSerializer()
module_bay = NestedModuleBaySerializer()
module_type = NestedModuleTypeSerializer()
status = ChoiceField(choices=ModuleStatusChoices, required=False)
class Meta:
model = Module