mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Convert RACK_WIDTH_CHOICES to ChoiceSet
This commit is contained in:
@@ -504,8 +504,8 @@ class Rack(ChangeLoggedModel, CustomFieldModel):
|
||||
verbose_name='Type'
|
||||
)
|
||||
width = models.PositiveSmallIntegerField(
|
||||
choices=RACK_WIDTH_CHOICES,
|
||||
default=RACK_WIDTH_19IN,
|
||||
choices=RackWidthChoices,
|
||||
default=RackWidthChoices.WIDTH_19IN,
|
||||
verbose_name='Width',
|
||||
help_text='Rail-to-rail width'
|
||||
)
|
||||
|
Reference in New Issue
Block a user