mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Switch from 'decommissioned' choice to 'decommissioning'
Per conversation suggestion in PR. Thanks @arthanson!
This commit is contained in:
parent
6f874ff133
commit
fef98057cb
@ -274,10 +274,10 @@ class L2VPNStatusChoices(ChoiceSet):
|
||||
|
||||
STATUS_ACTIVE = 'active'
|
||||
STATUS_PLANNED = 'planned'
|
||||
STATUS_DECOMMISSIONED = 'decommissioned'
|
||||
STATUS_DECOMMISSIONING = 'decommissioning'
|
||||
|
||||
CHOICES = [
|
||||
(STATUS_ACTIVE, _('Active'), 'green'),
|
||||
(STATUS_PLANNED, _('Planned'), 'cyan'),
|
||||
(STATUS_DECOMMISSIONED, _('Decommissioned'), 'red'),
|
||||
(STATUS_DECOMMISSIONING, _('Decommissioning'), 'red'),
|
||||
]
|
||||
|
@ -579,7 +579,7 @@ class L2VPNTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
||||
type=L2VPNTypeChoices.TYPE_VXLAN, identifier='650001'
|
||||
),
|
||||
L2VPN(
|
||||
name='L2VPN 2', slug='l2vpn-2', status=L2VPNStatusChoices.STATUS_DECOMMISSIONED,
|
||||
name='L2VPN 2', slug='l2vpn-2', status=L2VPNStatusChoices.STATUS_DECOMMISSIONING,
|
||||
type=L2VPNTypeChoices.TYPE_VXLAN, identifier='650002'
|
||||
),
|
||||
L2VPN(
|
||||
@ -603,7 +603,7 @@ class L2VPNTestCase(ViewTestCases.PrimaryObjectViewTestCase):
|
||||
|
||||
cls.bulk_edit_data = {
|
||||
'description': 'New Description',
|
||||
'status': L2VPNStatusChoices.STATUS_DECOMMISSIONED,
|
||||
'status': L2VPNStatusChoices.STATUS_DECOMMISSIONING,
|
||||
}
|
||||
|
||||
cls.form_data = {
|
||||
|
Loading…
Reference in New Issue
Block a user