Closes #18984: Add status field to Rack model (#20080)

This commit is contained in:
Jeremy Stretch
2025-08-12 13:35:50 -04:00
committed by GitHub
parent 032bd52dc7
commit bb57021197
15 changed files with 230 additions and 96 deletions

View File

@@ -139,6 +139,24 @@ class RackAirflowChoices(ChoiceSet):
]
#
# Rack reservations
#
class RackReservationStatusChoices(ChoiceSet):
key = 'RackReservation.status'
STATUS_PENDING = 'pending'
STATUS_ACTIVE = 'active'
STATUS_STALE = 'stale'
CHOICES = [
(STATUS_PENDING, _('Pending'), 'cyan'),
(STATUS_ACTIVE, _('Active'), 'green'),
(STATUS_STALE, _('Stale'), 'orange'),
]
#
# DeviceTypes
#