mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 03:42:25 -06:00
Closes #13279: Wrap choice labels with gettext()
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from utilities.choices import ChoiceSet
|
||||
|
||||
|
||||
@@ -12,8 +14,8 @@ class ContactPriorityChoices(ChoiceSet):
|
||||
PRIORITY_INACTIVE = 'inactive'
|
||||
|
||||
CHOICES = (
|
||||
(PRIORITY_PRIMARY, 'Primary'),
|
||||
(PRIORITY_SECONDARY, 'Secondary'),
|
||||
(PRIORITY_TERTIARY, 'Tertiary'),
|
||||
(PRIORITY_INACTIVE, 'Inactive'),
|
||||
(PRIORITY_PRIMARY, _('Primary')),
|
||||
(PRIORITY_SECONDARY, _('Secondary')),
|
||||
(PRIORITY_TERTIARY, _('Tertiary')),
|
||||
(PRIORITY_INACTIVE, _('Inactive')),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user