Improve ChoiceFieldColumn to not rely on model method to derive label color

This commit is contained in:
jeremystretch
2022-02-10 16:29:19 -05:00
parent d10943417a
commit d8610ccec4
14 changed files with 19 additions and 58 deletions

View File

@@ -1001,9 +1001,6 @@ class Device(NetBoxModel, ConfigContextModel):
"""
return Device.objects.filter(parent_bay__device=self.pk)
def get_status_class(self):
return DeviceStatusChoices.colors.get(self.status, 'secondary')
class Module(NetBoxModel, ConfigContextModel):
"""