Просмотр исходного кода

Fixes #1171: Allow removing site assignment when bulk editing VLANs

Jeremy Stretch 8 лет назад
Родитель
Сommit
d87acc97c3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/ipam/forms.py

+ 1 - 1
netbox/ipam/forms.py

@@ -701,7 +701,7 @@ class VLANBulkEditForm(BootstrapMixin, CustomFieldBulkEditForm):
     description = forms.CharField(max_length=100, required=False)
 
     class Meta:
-        nullable_fields = ['group', 'tenant', 'role', 'description']
+        nullable_fields = ['site', 'group', 'tenant', 'role', 'description']
 
 
 def vlan_status_choices():