mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
DeviceType.subdevice_role to slug (#3569)
This commit is contained in:
@@ -66,6 +66,26 @@ class RackStatusChoices(ChoiceSet):
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# DeviceTypes
|
||||
#
|
||||
|
||||
class SubdeviceRoleChoices(ChoiceSet):
|
||||
|
||||
ROLE_PARENT = 'parent'
|
||||
ROLE_CHILD = 'child'
|
||||
|
||||
CHOICES = (
|
||||
(ROLE_PARENT, 'Parent'),
|
||||
(ROLE_CHILD, 'Child'),
|
||||
)
|
||||
|
||||
LEGACY_MAP = {
|
||||
ROLE_PARENT: True,
|
||||
ROLE_CHILD: False,
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Devices
|
||||
#
|
||||
|
Reference in New Issue
Block a user