[PR #4115] [MERGED] Fixes #4100: Added device field to device components filter forms #12761

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4115
Author: @hSaria
Created: 2/7/2020
Status: Merged
Merged: 2/7/2020
Merged by: @jeremystretch

Base: developHead: 4100-interface-filter-device


📝 Commits (1)

  • bb9e1ad Fixes #4100: Added device field to device components filter forms

📊 Changes

1 file changed (+25 additions, -1 deletions)

View changed files

📝 netbox/dcim/forms.py (+25 -1)

📄 Description

Fixes: #4100

Added device field to DeviceComponentFilterForm from which the device components' filter forms inherit. The device_id filter_for was missing from the cables' filter forms, so added it there to keep the behavior consistent.


🔄 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/4115 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 2/7/2020 **Status:** ✅ Merged **Merged:** 2/7/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4100-interface-filter-device` --- ### 📝 Commits (1) - [`bb9e1ad`](https://github.com/netbox-community/netbox/commit/bb9e1ad85713223b001e677762b849227e39efa1) Fixes #4100: Added device field to device components filter forms ### 📊 Changes **1 file changed** (+25 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms.py` (+25 -1) </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: #4100 <ISSUE NUMBER GOES HERE> Added device field to `DeviceComponentFilterForm` from which the device components' filter forms inherit. The `device_id` `filter_for` was missing from the cables' filter forms, so added it there to keep the behavior consistent. --- <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:28 +01:00
adam closed this issue 2025-12-29 22:23:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12761