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

Closes #8794: Support dynamic configuration for JournalEntry kinds

This commit is contained in:
jeremystretch
2022-03-21 16:35:24 -04:00
parent 48dc76a694
commit ca44a654a5
3 changed files with 9 additions and 4 deletions

View File

@@ -83,18 +83,19 @@ class ObjectChangeActionChoices(ChoiceSet):
#
class JournalEntryKindChoices(ChoiceSet):
key = 'JournalEntry.kind'
KIND_INFO = 'info'
KIND_SUCCESS = 'success'
KIND_WARNING = 'warning'
KIND_DANGER = 'danger'
CHOICES = (
CHOICES = [
(KIND_INFO, 'Info', 'cyan'),
(KIND_SUCCESS, 'Success', 'green'),
(KIND_WARNING, 'Warning', 'yellow'),
(KIND_DANGER, 'Danger', 'red'),
)
]
#