[PR #18326] [MERGED] Fixes #18324: Correct filter names for certain related object listings #15328

Closed
opened 2025-12-30 00:21:18 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18326
Author: @jeremystretch
Created: 1/7/2025
Status: Merged
Merged: 1/7/2025
Merged by: @jeremystretch

Base: mainHead: 18324-scoped-object-filters


📝 Commits (1)

  • c77bfc6 Fixes #18324: Correct filter names for certain related object listings

📊 Changes

1 file changed (+38 additions, -6 deletions)

View changed files

📝 netbox/dcim/views.py (+38 -6)

📄 Description

Fixes: #18324

Manually override relations for scoped object types to ensure the proper filter name is used. Probably not the ideal solution but it should suffice until we can invest the time in refining the auto-generated links.


🔄 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/18326 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/7/2025 **Status:** ✅ Merged **Merged:** 1/7/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `18324-scoped-object-filters` --- ### 📝 Commits (1) - [`c77bfc6`](https://github.com/netbox-community/netbox/commit/c77bfc625a8b67da303b062aaaac22a0414b9686) Fixes #18324: Correct filter names for certain related object listings ### 📊 Changes **1 file changed** (+38 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/views.py` (+38 -6) </details> ### 📄 Description ### Fixes: #18324 Manually override relations for scoped object types to ensure the proper filter name is used. Probably not the ideal solution but it should suffice until we can invest the time in refining the auto-generated links. --- <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-30 00:21:18 +01:00
adam closed this issue 2025-12-30 00:21:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15328