mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-14 15:52:18 -06:00
Adds PowerOutlet.status to detail view
Also fixes color display in list table and detail template
This commit is contained in:
@@ -498,6 +498,9 @@ class PowerOutlet(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
|
||||
_("Parent power port ({power_port}) must belong to the same device").format(power_port=self.power_port)
|
||||
)
|
||||
|
||||
def get_status_color(self):
|
||||
return PowerOutletStatusChoices.colors.get(self.status)
|
||||
|
||||
|
||||
#
|
||||
# Interfaces
|
||||
|
||||
Reference in New Issue
Block a user