mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -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(
|
duplex = CSVChoiceField(
|
||||||
choices=InterfaceDuplexChoices,
|
choices=InterfaceDuplexChoices,
|
||||||
|
required=False,
|
||||||
help_text='Duplex'
|
help_text='Duplex'
|
||||||
)
|
)
|
||||||
mode = CSVChoiceField(
|
mode = CSVChoiceField(
|
||||||
|
@ -1292,10 +1292,11 @@ class InterfaceForm(InterfaceCommonForm, CustomFieldModelForm):
|
|||||||
widgets = {
|
widgets = {
|
||||||
'device': forms.HiddenInput(),
|
'device': forms.HiddenInput(),
|
||||||
'type': StaticSelect(),
|
'type': StaticSelect(),
|
||||||
|
'speed': SelectSpeedWidget(),
|
||||||
|
'duplex': StaticSelect(),
|
||||||
'mode': StaticSelect(),
|
'mode': StaticSelect(),
|
||||||
'rf_role': StaticSelect(),
|
'rf_role': StaticSelect(),
|
||||||
'rf_channel': StaticSelect(),
|
'rf_channel': StaticSelect(),
|
||||||
'speed': SelectSpeedWidget(attrs={'readonly': None}),
|
|
||||||
}
|
}
|
||||||
labels = {
|
labels = {
|
||||||
'mode': '802.1Q Mode',
|
'mode': '802.1Q Mode',
|
||||||
|
Loading…
Reference in New Issue
Block a user