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

PowerFeed.type to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-25 21:03:11 -05:00
parent 9872a46583
commit 62494f295e
7 changed files with 73 additions and 24 deletions

View File

@@ -3860,7 +3860,7 @@ class PowerFeedCSVForm(forms.ModelForm):
help_text='Operational status'
)
type = CSVChoiceField(
choices=POWERFEED_TYPE_CHOICES,
choices=PowerFeedTypeChoices,
required=False,
help_text='Primary or redundant'
)
@@ -3936,7 +3936,7 @@ class PowerFeedBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldBulkEd
widget=StaticSelect2()
)
type = forms.ChoiceField(
choices=add_blank_choice(POWERFEED_TYPE_CHOICES),
choices=add_blank_choice(PowerFeedTypeChoices),
required=False,
initial='',
widget=StaticSelect2()
@@ -4014,7 +4014,7 @@ class PowerFeedFilterForm(BootstrapMixin, CustomFieldFilterForm):
widget=StaticSelect2Multiple()
)
type = forms.ChoiceField(
choices=add_blank_choice(POWERFEED_TYPE_CHOICES),
choices=add_blank_choice(PowerFeedTypeChoices),
required=False,
widget=StaticSelect2()
)