1
0
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:
Jeremy Stretch
2019-11-25 21:08:34 -05:00
parent 62494f295e
commit bb8b012397
6 changed files with 48 additions and 15 deletions

View File

@@ -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,
}