Set required=False

This commit is contained in:
Joseph Kennedy 2017-08-26 21:44:09 -04:00
parent 23e20964e9
commit 2e01087aad

View File

@ -1544,6 +1544,7 @@ class InterfaceCSVForm(forms.ModelForm):
lag = FlexibleModelChoiceField(
queryset=Interface.objects.filter(form_factor=IFACE_FF_LAG),
to_field_name='name',
required=False,
help_text='Lag Name or ID of interface',
error_messages={'invalid_choice': 'Lag not found.'}
)