Configurable kind choices for journal entries #6166

Closed
opened 2025-12-29 19:37:38 +01:00 by adam · 1 comment
Owner

Originally created by @jcralbino on GitHub (Mar 4, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2-beta1

Feature type

Change to existing functionality

Proposed functionality

Allow NetBox administrators to configure the list of available kind choices for Journal entries

We could follow the same strategy as done in 8054

So we would have the following structure to replace the current choices with the ones seen here, leaving only two choices

FIELD_CHOICES = {
    'extras.journal-entries.kind': (
        ('value1', 'label1', 'color1'),
        ('value2', 'label2', 'color2'),
    )
}

Whereas adding a + to the end of the field identifier will instead extend the available choices:

FIELD_CHOICES = {
    'extras.journal-entries.kind+': (
        ('valueX', 'labelX', 'colorX'),
    )
}

Use case

This would allow users to define their own custom values for the journals.

Database changes

No response

External dependencies

No response

Originally created by @jcralbino on GitHub (Mar 4, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2-beta1 ### Feature type Change to existing functionality ### Proposed functionality Allow NetBox administrators to configure the list of available kind choices for Journal entries We could follow the same strategy as done in [8054](https://github.com/netbox-community/netbox/issues/8054) So we would have the following structure to replace the current choices with the ones seen here, leaving only two choices ``` FIELD_CHOICES = { 'extras.journal-entries.kind': ( ('value1', 'label1', 'color1'), ('value2', 'label2', 'color2'), ) } ``` Whereas adding a + to the end of the field identifier will instead extend the available choices: ``` FIELD_CHOICES = { 'extras.journal-entries.kind+': ( ('valueX', 'labelX', 'colorX'), ) } ``` ### Use case This would allow users to define their own custom values for the journals. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurebeta labels 2025-12-29 19:37:38 +01:00
adam closed this issue 2025-12-29 19:37:38 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 21, 2022):

For posterity, the implemented syntax is:

FIELD_CHOICES = {
    'extras.JournalEntry.kind+': (
        ('foo', 'Foo'),
    )
}
@jeremystretch commented on GitHub (Mar 21, 2022): For posterity, the implemented syntax is: ``` FIELD_CHOICES = { 'extras.JournalEntry.kind+': ( ('foo', 'Foo'), ) } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6166