mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Improve ChoiceFieldColumn to not rely on model method to derive label color
This commit is contained in:
@@ -309,9 +309,6 @@ class Site(NetBoxModel):
|
||||
def get_absolute_url(self):
|
||||
return reverse('dcim:site', args=[self.pk])
|
||||
|
||||
def get_status_class(self):
|
||||
return SiteStatusChoices.colors.get(self.status, 'secondary')
|
||||
|
||||
|
||||
#
|
||||
# Locations
|
||||
|
Reference in New Issue
Block a user