Преглед изворни кода

Closes #8758: Allow empty string substitution when renaming objects in bulk

jeremystretch пре 4 година
родитељ
комит
6423b386d2
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 1 0
      docs/release-notes/version-3.1.md
  2. 3 1
      netbox/utilities/forms/forms.py

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

@@ -8,6 +8,7 @@
 * [#8629](https://github.com/netbox-community/netbox/issues/8629) - Add description to tag table search function
 * [#8664](https://github.com/netbox-community/netbox/issues/8664) - Show assigned ASNs/sites under list views
 * [#8736](https://github.com/netbox-community/netbox/issues/8736) - Add PC and UPC fiber end faces for LC/SC/LSH port types
+* [#8758](https://github.com/netbox-community/netbox/issues/8758) - Allow empty string substitution when renaming objects in bulk
 * [#8762](https://github.com/netbox-community/netbox/issues/8762) - Link to rack elevations list from site view
 * [#8766](https://github.com/netbox-community/netbox/issues/8766) - Add SCTP to service protocols list
 

+ 3 - 1
netbox/utilities/forms/forms.py

@@ -98,7 +98,9 @@ class BulkRenameForm(BootstrapMixin, forms.Form):
     An extendable form to be used for renaming objects in bulk.
     """
     find = forms.CharField()
-    replace = forms.CharField()
+    replace = forms.CharField(
+        required=False
+    )
     use_regex = forms.BooleanField(
         required=False,
         initial=True,