mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28:16 -06:00
Try a different to_field_name
This commit is contained in:
parent
2e01087aad
commit
197529514d
@ -1543,7 +1543,7 @@ class InterfaceCSVForm(forms.ModelForm):
|
|||||||
)
|
)
|
||||||
lag = FlexibleModelChoiceField(
|
lag = FlexibleModelChoiceField(
|
||||||
queryset=Interface.objects.filter(form_factor=IFACE_FF_LAG),
|
queryset=Interface.objects.filter(form_factor=IFACE_FF_LAG),
|
||||||
to_field_name='name',
|
to_field_name='lag',
|
||||||
required=False,
|
required=False,
|
||||||
help_text='Lag Name or ID of interface',
|
help_text='Lag Name or ID of interface',
|
||||||
error_messages={'invalid_choice': 'Lag not found.'}
|
error_messages={'invalid_choice': 'Lag not found.'}
|
||||||
|
Loading…
Reference in New Issue
Block a user