Switch from 'decommissioned' choice to 'decommissioning'

Per conversation suggestion in PR. Thanks @arthanson!
This commit is contained in:
Jason Novinger 2025-03-06 08:49:04 -06:00
parent 6f874ff133
commit fef98057cb
2 changed files with 4 additions and 4 deletions

View File

@ -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'),
]

View File

@ -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 = {