[PR #13793] [MERGED] 13791 rename whitespace fix #14251

Closed
opened 2025-12-29 23:23:26 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13793
Author: @pv2b
Created: 9/17/2023
Status: Merged
Merged: 9/18/2023
Merged by: @jeremystretch

Base: developHead: 13791-rename-whitespace-fix


📝 Commits (2)

📊 Changes

2 files changed (+18 additions, -1 deletions)

View changed files

📝 netbox/utilities/forms/forms.py (+4 -1)
📝 netbox/utilities/tests/test_forms.py (+14 -0)

📄 Description

Fixes: #13791

Disables Django's form stripping of the "find" and "replace" fields of the BulkRenameForm. This should fix all bulk rename forms in the project that inherit from this base class. Also added a unit test to make sure this works.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13793 **Author:** [@pv2b](https://github.com/pv2b) **Created:** 9/17/2023 **Status:** ✅ Merged **Merged:** 9/18/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13791-rename-whitespace-fix` --- ### 📝 Commits (2) - [`320efa7`](https://github.com/netbox-community/netbox/commit/320efa79349c51590d93a98da78e9be6308bcf13) Add test for bug #13791 - [`85c5508`](https://github.com/netbox-community/netbox/commit/85c5508a43430651e4d37634ed654f9290ee1597) Fix #13791 by disabling striping on find and replace fields of BulkRenameForm ### 📊 Changes **2 files changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms/forms.py` (+4 -1) 📝 `netbox/utilities/tests/test_forms.py` (+14 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #13791 <!-- Please include a summary of the proposed changes below. --> Disables Django's form stripping of the "find" and "replace" fields of the BulkRenameForm. This should fix all bulk rename forms in the project that inherit from this base class. Also added a unit test to make sure this works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:26 +01:00
adam closed this issue 2025-12-29 23:23:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14251