[PR #8473] [MERGED] Closes #8472: Make view name resolution plugin-safe #13356

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8473
Author: @jeremystretch
Created: 1/27/2022
Status: Merged
Merged: 1/27/2022
Merged by: @jeremystretch

Base: featureHead: 6221-pluginviews


📝 Commits (2)

  • 88ac0f5 Work on #6221 - Make templatetags safe for consumption when using plugins and update ButtonColumn to use viewname helper.
  • 75aa1c7 Merge feature

📊 Changes

3 files changed (+18 additions, -5 deletions)

View changed files

📝 netbox/netbox/tables/columns.py (+2 -2)
📝 netbox/utilities/templatetags/helpers.py (+6 -3)
📝 netbox/utilities/utils.py (+10 -0)

📄 Description

Closes: #8472

Introduces resolve_namespace() to dynamically resolve the view namespace for any model (including those provided by plugins). Credit to @DanSheps for his initial work on this under #6221.


🔄 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/8473 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/27/2022 **Status:** ✅ Merged **Merged:** 1/27/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `6221-pluginviews` --- ### 📝 Commits (2) - [`88ac0f5`](https://github.com/netbox-community/netbox/commit/88ac0f5d3409d0727aef5518c3632cd6b9383732) Work on #6221 - Make templatetags safe for consumption when using plugins and update ButtonColumn to use viewname helper. - [`75aa1c7`](https://github.com/netbox-community/netbox/commit/75aa1c7b806c4583bd5087d0fc3bf26b42c60848) Merge feature ### 📊 Changes **3 files changed** (+18 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/tables/columns.py` (+2 -2) 📝 `netbox/utilities/templatetags/helpers.py` (+6 -3) 📝 `netbox/utilities/utils.py` (+10 -0) </details> ### 📄 Description ### Closes: #8472 Introduces `resolve_namespace()` to dynamically resolve the view namespace for any model (including those provided by plugins). Credit to @DanSheps for his initial work on this under #6221. --- <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:57 +01:00
adam closed this issue 2025-12-29 22:26:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13356