Explorar o código

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

Jeremy Stretch %!s(int64=8) %!d(string=hai) anos
pai
achega
54472b3806
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      netbox/dcim/forms.py

+ 1 - 0
netbox/dcim/forms.py

@@ -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.',