[PR #3893] [CLOSED] Fixes #3310: Preselect cable fields #12684

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3893
Author: @hSaria
Created: 1/11/2020
Status: Closed

Base: developHead: 3310-preselect-cable-fields


📝 Commits (10+)

  • d0ec51e Fixes #3310: preselect site and rack when connecting cable
  • 7c4c908 Select2 widgets for type, status, and length unit of cable
  • 8127f72 Merge branch 'develop' into 3310-preselect-cable-fields
  • f604b1a Only assign the initial data if not already assigned
  • 08f5821 Merge branch 'develop' into 3310-preselect-cable-fields
  • d2bdc28 Corrected changelog header
  • e7a4f78 Merge branch 'develop' into 3310-preselect-cable-fields
  • fd5c345 Merge branch 'develop' into 3310-preselect-cable-fields
  • 4c4f0b6 Merge branch 'develop' into 3310-preselect-cable-fields
  • fc7af63 Merge branch '3310-preselect-cable-fields' of https://github.com/hSaria/netbox into 3310-preselect-cable-fields

📊 Changes

4 files changed (+34 additions, -4 deletions)

View changed files

📝 docs/release-notes/version-2.7.md (+8 -0)
📝 netbox/dcim/forms.py (+22 -0)
📝 netbox/templates/dcim/cable_connect.html (+2 -2)
📝 netbox/templates/dcim/cable_edit.html (+2 -2)

📄 Description

Fixes: #3310

Preselect the site and rack fields when connecting a cable. Also noticed that the status, type, and length unit weren't using Select2, so fixed that one up as well.

Because of how chain filtering cannot span multiple model relationships (AFAIK), I cannot filter the list of interfaces based on the site and rack; this change only assists with the devices field.


🔄 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/3893 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 1/11/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `3310-preselect-cable-fields` --- ### 📝 Commits (10+) - [`d0ec51e`](https://github.com/netbox-community/netbox/commit/d0ec51eff0a0bf68f86a0908150e384030e23ed1) Fixes #3310: preselect site and rack when connecting cable - [`7c4c908`](https://github.com/netbox-community/netbox/commit/7c4c908758b38bf833fa87a11c385e3bdfb4adf7) Select2 widgets for type, status, and length unit of cable - [`8127f72`](https://github.com/netbox-community/netbox/commit/8127f726d66f147de0f35bfed767d7beb9eb2e08) Merge branch 'develop' into 3310-preselect-cable-fields - [`f604b1a`](https://github.com/netbox-community/netbox/commit/f604b1a0ae3e2b0418679181aee27a5665ca9410) Only assign the initial data if not already assigned - [`08f5821`](https://github.com/netbox-community/netbox/commit/08f58215ef8bc0bba8c0394636c73bf6a4220408) Merge branch 'develop' into 3310-preselect-cable-fields - [`d2bdc28`](https://github.com/netbox-community/netbox/commit/d2bdc2898637a965b7a0e6173c681341e0d94cdf) Corrected changelog header - [`e7a4f78`](https://github.com/netbox-community/netbox/commit/e7a4f78acebcfa932887d22f7d8caa358da73727) Merge branch 'develop' into 3310-preselect-cable-fields - [`fd5c345`](https://github.com/netbox-community/netbox/commit/fd5c3451ecf5c0d329f5c3deb640b8d5f8e4a73d) Merge branch 'develop' into 3310-preselect-cable-fields - [`4c4f0b6`](https://github.com/netbox-community/netbox/commit/4c4f0b65401974626c99d30bdea17dc0b2d058c6) Merge branch 'develop' into 3310-preselect-cable-fields - [`fc7af63`](https://github.com/netbox-community/netbox/commit/fc7af636546ca0736b61dc911343ee44cf539e4b) Merge branch '3310-preselect-cable-fields' of https://github.com/hSaria/netbox into 3310-preselect-cable-fields ### 📊 Changes **4 files changed** (+34 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.7.md` (+8 -0) 📝 `netbox/dcim/forms.py` (+22 -0) 📝 `netbox/templates/dcim/cable_connect.html` (+2 -2) 📝 `netbox/templates/dcim/cable_edit.html` (+2 -2) </details> ### 📄 Description ### Fixes: #3310 Preselect the site and rack fields when connecting a cable. Also noticed that the status, type, and length unit weren't using Select2, so fixed that one up as well. > Because of how chain filtering cannot span multiple model relationships (AFAIK), I cannot filter the list of interfaces based on the site and rack; this change only assists with the devices field. --- <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:23:01 +01:00
adam closed this issue 2025-12-29 22:23:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12684