[PR #14196] [MERGED] Closes #13794: Dynamically populate related objects list under tenant view #14330

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14196
Author: @jeremystretch
Created: 11/6/2023
Status: Merged
Merged: 11/16/2023
Merged by: @jeremystretch

Base: featureHead: 13794-tenant-dynamic-related-models


📝 Commits (3)

  • bb7d3df Closes #13794: Dynamically populate related objects list under tenant view
  • c36386a get_related_models() should sort models alphabetically by default
  • a60b266 Reference Meta.related_objects instead of calling get_fields()

📊 Changes

2 files changed (+21 additions, -33 deletions)

View changed files

📝 netbox/tenancy/views.py (+3 -32)
📝 netbox/utilities/utils.py (+18 -1)

📄 Description

Fixes: #13794

  • Introduce the get_related_models() utility function
  • Replace the static list of related models

🔄 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/14196 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 11/6/2023 **Status:** ✅ Merged **Merged:** 11/16/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13794-tenant-dynamic-related-models` --- ### 📝 Commits (3) - [`bb7d3df`](https://github.com/netbox-community/netbox/commit/bb7d3dfff2730fe9c742f2e68bc48d749e76b24b) Closes #13794: Dynamically populate related objects list under tenant view - [`c36386a`](https://github.com/netbox-community/netbox/commit/c36386a32b6895e90cbc7743728a121b12349514) get_related_models() should sort models alphabetically by default - [`a60b266`](https://github.com/netbox-community/netbox/commit/a60b2662851b215e76cf90f899d412468a684790) Reference Meta.related_objects instead of calling get_fields() ### 📊 Changes **2 files changed** (+21 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `netbox/tenancy/views.py` (+3 -32) 📝 `netbox/utilities/utils.py` (+18 -1) </details> ### 📄 Description ### Fixes: #13794 - Introduce the `get_related_models()` utility function - Replace the static list of related models --- <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 23:23:51 +01:00
adam closed this issue 2025-12-29 23:23:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14330