1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Rack.outer_unit to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-25 20:54:24 -05:00
parent 4846557d61
commit 9872a46583
7 changed files with 62 additions and 24 deletions

View File

@@ -89,6 +89,22 @@ class RackStatusChoices(ChoiceSet):
}
class RackDimensionUnitChoices(ChoiceSet):
UNIT_MILLIMETER = 'mm'
UNIT_INCH = 'in'
CHOICES = (
(UNIT_MILLIMETER, 'Millimeters'),
(UNIT_INCH, 'Inches'),
)
LEGACY_MAP = {
UNIT_MILLIMETER: 1000,
UNIT_INCH: 2000,
}
#
# DeviceTypes
#