Ver código fonte

Closes #10923: Remove unused NetBoxModelCSVForm class

jeremystretch 3 anos atrás
pai
commit
e19ce69238

+ 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'
         - git Cheat Sheet: 'development/git-cheat-sheet.md'
     - Release Notes:
     - Release Notes:
         - Summary: 'release-notes/index.md'
         - 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.4: 'release-notes/version-3.4.md'
         - Version 3.3: 'release-notes/version-3.3.md'
         - Version 3.3: 'release-notes/version-3.3.md'
         - Version 3.2: 'release-notes/version-3.2.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
 from utilities.forms.fields import CSVModelMultipleChoiceField, DynamicModelMultipleChoiceField
 
 
 __all__ = (
 __all__ = (
-    'NetBoxModelCSVForm',
     'NetBoxModelForm',
     'NetBoxModelForm',
     'NetBoxModelImportForm',
     'NetBoxModelImportForm',
     'NetBoxModelBulkEditForm',
     'NetBoxModelBulkEditForm',
@@ -86,14 +85,6 @@ class NetBoxModelImportForm(CSVModelForm, NetBoxModelForm):
         return customfield.to_form_field(for_csv_import=True)
         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):
 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
     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
 # Environment setup
 #
 #
 
 
-VERSION = '3.4.5-dev'
+VERSION = '3.5.0-dev'
 
 
 # Hostname
 # Hostname
 HOSTNAME = platform.node()
 HOSTNAME = platform.node()