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:
@@ -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)
|
||||
|
||||
|
@@ -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',
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user