1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

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()