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:
@@ -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'),
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user