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

Fixes #6909: Remove extraneous site column from VLAN group import form

jeremystretch 4 лет назад
Родитель
Сommit
a8b6902829
2 измененных файлов с 1 добавлено и 6 удалено
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 0 6
      netbox/ipam/forms.py

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -11,6 +11,7 @@
 * [#6740](https://github.com/netbox-community/netbox/issues/6740) - Add import button to VM interfaces list
 * [#6892](https://github.com/netbox-community/netbox/issues/6892) - Fix validation of unit ranges when creating a rack reservation
 * [#6902](https://github.com/netbox-community/netbox/issues/6902) - Populate device field when cloning device components
+* [#6909](https://github.com/netbox-community/netbox/issues/6909) - Remove extraneous `site` column from VLAN group import form
 
 ---
 

+ 0 - 6
netbox/ipam/forms.py

@@ -1238,12 +1238,6 @@ class VLANGroupForm(BootstrapMixin, CustomFieldModelForm):
 
 
 class VLANGroupCSVForm(CustomFieldModelCSVForm):
-    site = CSVModelChoiceField(
-        queryset=Site.objects.all(),
-        required=False,
-        to_field_name='name',
-        help_text='Assigned site'
-    )
     slug = SlugField()
 
     class Meta: