mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
PowerFeed.phase to slug (#3569)
This commit is contained in:
@@ -3870,7 +3870,7 @@ class PowerFeedCSVForm(forms.ModelForm):
|
||||
help_text='AC/DC'
|
||||
)
|
||||
phase = CSVChoiceField(
|
||||
choices=POWERFEED_PHASE_CHOICES,
|
||||
choices=PowerFeedPhaseChoices,
|
||||
required=False,
|
||||
help_text='Single or three-phase'
|
||||
)
|
||||
@@ -3948,7 +3948,7 @@ class PowerFeedBulkEditForm(BootstrapMixin, AddRemoveTagsForm, CustomFieldBulkEd
|
||||
widget=StaticSelect2()
|
||||
)
|
||||
phase = forms.ChoiceField(
|
||||
choices=add_blank_choice(POWERFEED_PHASE_CHOICES),
|
||||
choices=add_blank_choice(PowerFeedPhaseChoices),
|
||||
required=False,
|
||||
initial='',
|
||||
widget=StaticSelect2()
|
||||
@@ -4024,7 +4024,7 @@ class PowerFeedFilterForm(BootstrapMixin, CustomFieldFilterForm):
|
||||
widget=StaticSelect2()
|
||||
)
|
||||
phase = forms.ChoiceField(
|
||||
choices=add_blank_choice(POWERFEED_PHASE_CHOICES),
|
||||
choices=add_blank_choice(PowerFeedPhaseChoices),
|
||||
required=False,
|
||||
widget=StaticSelect2()
|
||||
)
|
||||
|
Reference in New Issue
Block a user