mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
PowerFeed.supply to slug (#3569)
This commit is contained in:
@@ -892,3 +892,19 @@ class PowerFeedTypeChoices(ChoiceSet):
|
||||
TYPE_PRIMARY: 1,
|
||||
TYPE_REDUNDANT: 2,
|
||||
}
|
||||
|
||||
|
||||
class PowerFeedSupplyChoices(ChoiceSet):
|
||||
|
||||
SUPPLY_AC = 'ac'
|
||||
SUPPLY_DC = 'dc'
|
||||
|
||||
CHOICES = (
|
||||
(SUPPLY_AC, 'Primary'),
|
||||
(SUPPLY_DC, 'Redundant'),
|
||||
)
|
||||
|
||||
LEGACY_MAP = {
|
||||
SUPPLY_AC: 1,
|
||||
SUPPLY_DC: 2,
|
||||
}
|
||||
|
Reference in New Issue
Block a user