mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Fix CSV import test & form cleanup
This commit is contained in:
parent
0f58faaddb
commit
ff396b5953
@ -620,6 +620,7 @@ class InterfaceCSVForm(CustomFieldModelCSVForm):
|
||||
)
|
||||
duplex = CSVChoiceField(
|
||||
choices=InterfaceDuplexChoices,
|
||||
required=False,
|
||||
help_text='Duplex'
|
||||
)
|
||||
mode = CSVChoiceField(
|
||||
|
@ -1292,10 +1292,11 @@ class InterfaceForm(InterfaceCommonForm, CustomFieldModelForm):
|
||||
widgets = {
|
||||
'device': forms.HiddenInput(),
|
||||
'type': StaticSelect(),
|
||||
'speed': SelectSpeedWidget(),
|
||||
'duplex': StaticSelect(),
|
||||
'mode': StaticSelect(),
|
||||
'rf_role': StaticSelect(),
|
||||
'rf_channel': StaticSelect(),
|
||||
'speed': SelectSpeedWidget(attrs={'readonly': None}),
|
||||
}
|
||||
labels = {
|
||||
'mode': '802.1Q Mode',
|
||||
|
Loading…
Reference in New Issue
Block a user