Browse Source

Fixed selection of sites not assigned to a region

Jeremy Stretch 7 years ago
parent
commit
1341ab5703
1 changed files with 1 additions and 1 deletions
  1. 1 1
      netbox/virtualization/forms.py

+ 1 - 1
netbox/virtualization/forms.py

@@ -98,7 +98,7 @@ class ClusterAddDevicesForm(BootstrapMixin, ChainedFieldsMixin, forms.Form):
         queryset=Region.objects.all(),
         required=False,
         widget=forms.Select(
-            attrs={'filter-for': 'site'}
+            attrs={'filter-for': 'site', 'nullable': 'true'}
         )
     )
     site = ChainedModelChoiceField(