Explorar o código

Closes #10923: Remove unused NetBoxModelCSVForm class

jeremystretch %!s(int64=3) %!d(string=hai) anos
pai
achega
e19ce69238
Modificáronse 4 ficheiros con 9 adicións e 10 borrados
  1. 7 0
      docs/release-notes/version-3.5.md
  2. 1 0
      mkdocs.yml
  3. 0 9
      netbox/netbox/forms/base.py
  4. 1 1
      netbox/netbox/settings.py

+ 7 - 0
docs/release-notes/version-3.5.md

@@ -0,0 +1,7 @@
+# NetBox v3.4
+
+## v3.5.0 (FUTURE)
+
+### Other Changes
+
+* [#10923](https://github.com/netbox-community/netbox/issues/10923) - Remove unused `NetBoxModelCSVForm` class (replaced by `NetBoxModelImportForm`)

+ 1 - 0
mkdocs.yml

@@ -259,6 +259,7 @@ nav:
         - git Cheat Sheet: 'development/git-cheat-sheet.md'
     - Release Notes:
         - Summary: 'release-notes/index.md'
+        - Version 3.5: 'release-notes/version-3.5.md'
         - Version 3.4: 'release-notes/version-3.4.md'
         - Version 3.3: 'release-notes/version-3.3.md'
         - Version 3.2: 'release-notes/version-3.2.md'

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

@@ -10,7 +10,6 @@ from utilities.forms import BootstrapMixin, CSVModelForm
 from utilities.forms.fields import CSVModelMultipleChoiceField, DynamicModelMultipleChoiceField
 
 __all__ = (
-    'NetBoxModelCSVForm',
     'NetBoxModelForm',
     'NetBoxModelImportForm',
     'NetBoxModelBulkEditForm',
@@ -86,14 +85,6 @@ class NetBoxModelImportForm(CSVModelForm, NetBoxModelForm):
         return customfield.to_form_field(for_csv_import=True)
 
 
-class NetBoxModelCSVForm(NetBoxModelImportForm):
-    """
-    Maintains backward compatibility for NetBoxModelImportForm for plugins.
-    """
-    # TODO: Remove in NetBox v3.5
-    pass
-
-
 class NetBoxModelBulkEditForm(BootstrapMixin, CustomFieldsMixin, forms.Form):
     """
     Base form for modifying multiple NetBox objects (of the same type) in bulk via the UI. Adds support for custom

+ 1 - 1
netbox/netbox/settings.py

@@ -24,7 +24,7 @@ from netbox.constants import RQ_QUEUE_DEFAULT, RQ_QUEUE_HIGH, RQ_QUEUE_LOW
 # Environment setup
 #
 
-VERSION = '3.4.5-dev'
+VERSION = '3.5.0-dev'
 
 # Hostname
 HOSTNAME = platform.node()