1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

This commit is contained in:
jeremystretch
2022-04-18 09:39:36 -04:00
parent 118bf5152c
commit d4f1cb5d6a
2 changed files with 3 additions and 0 deletions

View File

@ -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
---

View File

@ -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)