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

PowerOutlet.feed_leg to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-27 21:29:58 -05:00
parent 8c7f6c62b0
commit 21fe5902a8
8 changed files with 99 additions and 28 deletions

View File

@@ -245,7 +245,7 @@ class PowerOutletTemplateSerializer(ValidatedModelSerializer):
required=False
)
feed_leg = ChoiceField(
choices=POWERFEED_LEG_CHOICES,
choices=PowerOutletFeedLegChoices,
required=False,
allow_null=True
)
@@ -429,7 +429,7 @@ class PowerOutletSerializer(TaggitSerializer, ConnectedEndpointSerializer):
required=False
)
feed_leg = ChoiceField(
choices=POWERFEED_LEG_CHOICES,
choices=PowerOutletFeedLegChoices,
required=False,
allow_null=True
)