mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Support CSS class definition directly in CHOICES iterable
This commit is contained in:
@@ -105,4 +105,4 @@ class ObjectChange(BigIDModel):
|
||||
return reverse('extras:objectchange', args=[self.pk])
|
||||
|
||||
def get_action_class(self):
|
||||
return ObjectChangeActionChoices.CSS_CLASSES.get(self.action)
|
||||
return ObjectChangeActionChoices.colors.get(self.action)
|
||||
|
Reference in New Issue
Block a user