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

Remove choices from rf_channel_width

This commit is contained in:
jeremystretch
2021-10-15 10:06:49 -04:00
parent 01d3c062f2
commit b7317bfe29
7 changed files with 5 additions and 27 deletions

View File

@@ -1014,11 +1014,9 @@ class InterfaceFilterForm(DeviceComponentFilterForm):
widget=StaticSelectMultiple(),
label='Wireless channel'
)
rf_channel_width = forms.MultipleChoiceField(
choices=WirelessChannelWidthChoices,
rf_channel_width = forms.IntegerField(
required=False,
widget=StaticSelectMultiple(),
label='Channel width'
label='Channel width (kHz)'
)
tag = TagFilterField(model)

View File

@@ -1117,7 +1117,6 @@ class InterfaceForm(BootstrapMixin, InterfaceCommonForm, CustomFieldModelForm):
'mode': StaticSelect(),
'rf_role': StaticSelect(),
'rf_channel': StaticSelect(),
'rf_channel_width': StaticSelect(),
}
labels = {
'mode': '802.1Q Mode',

View File

@@ -480,10 +480,8 @@ class InterfaceCreateForm(ComponentCreateForm, InterfaceCommonForm):
widget=StaticSelect(),
label='Wireless channel'
)
rf_channel_width = forms.ChoiceField(
choices=add_blank_choice(WirelessChannelWidthChoices),
rf_channel_width = forms.IntegerField(
required=False,
widget=StaticSelect(),
label='Channel width'
)
untagged_vlan = DynamicModelChoiceField(