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

Fixes #9158: Do not list tags field for CSV forms which do not support tag assignment

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

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

@@ -12,6 +12,7 @@
 * [#9133](https://github.com/netbox-community/netbox/issues/9133) - Upgrade script should require Python 3.8 or later
 * [#9151](https://github.com/netbox-community/netbox/issues/9151) - Child prefix counts not annotated on aggregates list under RIR view
 * [#9156](https://github.com/netbox-community/netbox/issues/9156) - Fix loading UserConfig data from fixtures
+* [#9158](https://github.com/netbox-community/netbox/issues/9158) - Do not list tags field for CSV forms which do not support tag assignment
 
 ---
 

+ 2 - 0
netbox/netbox/forms/base.py

@@ -61,6 +61,8 @@ class NetBoxModelCSVForm(CSVModelForm, NetBoxModelForm):
     """
     Base form for creating a NetBox objects from CSV data. Used for bulk importing.
     """
+    tags = None  # Temporary fix in lieu of tag import support (see #9158)
+
     def _get_form_field(self, customfield):
         return customfield.to_form_field(for_csv_import=True)