Fixes #1848: Allow null value for interface encapsulation mode

This commit is contained in:
Jeremy Stretch 2018-01-30 16:20:50 -05:00
parent 215156c333
commit 2f7f5425d8

View File

@ -1778,7 +1778,7 @@ class InterfaceCreateForm(ComponentForm, ChainedFieldsMixin):
mac_address = MACAddressFormField(required=False, label='MAC Address')
mgmt_only = forms.BooleanField(required=False, label='OOB Management')
description = forms.CharField(max_length=100, required=False)
mode = forms.ChoiceField(choices=IFACE_MODE_CHOICES)
mode = forms.ChoiceField(choices=add_blank_choice(IFACE_MODE_CHOICES), required=False)
site = forms.ModelChoiceField(
queryset=Site.objects.all(),
required=False,