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

Fixes #1634: Cluster should not be a required field when importing child devices

This commit is contained in:
Jeremy Stretch
2017-10-23 13:17:51 -04:00
parent 14e5f89feb
commit 54472b3806

View File

@ -953,6 +953,7 @@ class ChildDeviceCSVForm(BaseDeviceCSVForm):
cluster = forms.ModelChoiceField(
queryset=Cluster.objects.all(),
to_field_name='name',
required=False,
help_text='Virtualization cluster',
error_messages={
'invalid_choice': 'Invalid cluster name.',