[PR #7105] [MERGED] Fix #7090: cable bulk edit form - allow decimal input on length field #13209

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7105
Author: @sdktr
Created: 8/31/2021
Status: Merged
Merged: 8/31/2021
Merged by: @jeremystretch

Base: developHead: 7090-fix-cablebulkedit-length-field


📝 Commits (4)

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 docs/release-notes/version-3.0.md (+1 -0)
📝 netbox/dcim/forms.py (+2 -2)

📄 Description

Fixes: #7090

#6154 changed the Length property of the Cable model from Integer to Decimal. This PR changes the bulk edit form for Cables to allow decimal input when editing multiple cables at once.

Note: I'm not sure why the properties for bulkeditform is not inherited from the model. The single edit page seems to follow this pattern. We should follow that pattern for bulk edit forms as well, to avoid code duplication.


🔄 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/7105 **Author:** [@sdktr](https://github.com/sdktr) **Created:** 8/31/2021 **Status:** ✅ Merged **Merged:** 8/31/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `7090-fix-cablebulkedit-length-field` --- ### 📝 Commits (4) - [`1909f0c`](https://github.com/netbox-community/netbox/commit/1909f0c7330d3f3c4e5c5a52735d8412d023beb5) Fix #7090: Cable Bulk Edit, length field should be decimal - [`4618cc2`](https://github.com/netbox-community/netbox/commit/4618cc2b22a19cf01aa46da5aeae32580a36666a) Merge branch 'develop' of github.com:netbox-community/netbox into 7090-fix-cablebulkedit-length-field - [`f1e4273`](https://github.com/netbox-community/netbox/commit/f1e4273a23564a4008051645ce48034619da443b) Changelog for #7090 - [`9c389d9`](https://github.com/netbox-community/netbox/commit/9c389d9dcb723b202a46b02944bc605bdba93183) Changelog #7090 fix whitespace ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.0.md` (+1 -0) 📝 `netbox/dcim/forms.py` (+2 -2) </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 opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #7090 <!-- Please include a summary of the proposed changes below. --> #6154 changed the Length property of the Cable model from Integer to Decimal. This PR changes the bulk edit form for Cables to allow decimal input when editing multiple cables at once. Note: I'm not sure why the properties for bulkeditform is not inherited from the model. The single edit page seems to follow this pattern. We should follow that pattern for bulk edit forms as well, to avoid code duplication. --- <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 22:26:00 +01:00
adam closed this issue 2025-12-29 22:26:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13209