Changed CircuitForm.interface to an optional field

This commit is contained in:
Jeremy Stretch 2016-03-08 10:50:12 -05:00
parent 2098a152d8
commit 396affbb48
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class CircuitForm(forms.ModelForm, BootstrapMixin):
livesearch = forms.CharField(required=False, label='Device', widget=Livesearch(
query_key='q', query_url='dcim-api:device_list', field_to_update='device')
)
interface = forms.ModelChoiceField(queryset=Interface.objects.all(), label='Interface',
interface = forms.ModelChoiceField(queryset=Interface.objects.all(), required=False, label='Interface',
widget=APISelect(api_url='/api/dcim/devices/{{device}}/interfaces/?type=physical',
disabled_indicator='is_connected'))
comments = CommentField()