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

PowerFeed.status to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-25 21:21:35 -05:00
parent 2dc07ca30d
commit 8c7f6c62b0
6 changed files with 68 additions and 31 deletions

View File

@@ -3855,7 +3855,7 @@ class PowerFeedCSVForm(forms.ModelForm):
help_text="Rack name (optional)"
)
status = CSVChoiceField(
choices=POWERFEED_STATUS_CHOICES,
choices=PowerFeedStatusChoices,
required=False,
help_text='Operational status'
)
@@ -3930,7 +3930,7 @@ class PowerFeedBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldBulkEd
)
)
status = forms.ChoiceField(
choices=add_blank_choice(POWERFEED_STATUS_CHOICES),
choices=add_blank_choice(PowerFeedStatusChoices),
required=False,
initial='',
widget=StaticSelect2()
@@ -4009,7 +4009,7 @@ class PowerFeedFilterForm(BootstrapMixin, CustomFieldFilterForm):
)
)
status = forms.MultipleChoiceField(
choices=POWERFEED_STATUS_CHOICES,
choices=PowerFeedStatusChoices,
required=False,
widget=StaticSelect2Multiple()
)