mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 08:08:15 -06:00
Try to fix lag field in InterfaceCSVForm...likely to fail
This commit is contained in:
parent
67bf11ab82
commit
f7bb400940
@ -1541,9 +1541,11 @@ class InterfaceCSVForm(forms.ModelForm):
|
||||
name = forms.CharField(
|
||||
help_text='Name of interface'
|
||||
)
|
||||
lag = forms.CharField(
|
||||
lag = FlexibleModelChoiceField(
|
||||
required=False,
|
||||
help_text='Lag Name'
|
||||
queryset = Interface.objects.order_naturally().filter(form_factor=IFACE_FF_LAG)
|
||||
help_text='Lag Name',
|
||||
error_messages={'invalid_choice': 'Lag not found.'}
|
||||
)
|
||||
mac_address = forms.CharField(
|
||||
required=False,
|
||||
|
Loading…
Reference in New Issue
Block a user