[PR #15183] [MERGED] Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer #14540

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15183
Author: @DanSheps
Created: 2/17/2024
Status: Merged
Merged: 2/20/2024
Merged by: @jeremystretch

Base: developHead: 14058-limit-platform-to-manufacturer


📝 Commits (2)

  • 31ad711 Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer
  • b6a9818 Apply suggestions from code review

📊 Changes

3 files changed (+35 additions, -2 deletions)

View changed files

📝 netbox/dcim/filtersets.py (+14 -0)
📝 netbox/dcim/forms/model_forms.py (+9 -2)
📝 netbox/dcim/tests/test_filtersets.py (+12 -0)

📄 Description

Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer

  • Add new filter(s):
    • get_for_device_type
    • get_for_manufacturer
  • Configure form to utilize new filters
  • Add tests

🔄 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/15183 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 2/17/2024 **Status:** ✅ Merged **Merged:** 2/20/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14058-limit-platform-to-manufacturer` --- ### 📝 Commits (2) - [`31ad711`](https://github.com/netbox-community/netbox/commit/31ad7119e70f3c1b3c168e7b205706c55820cda7) Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer - [`b6a9818`](https://github.com/netbox-community/netbox/commit/b6a981895a298f2b66cf6ac63b23d69cc9c0e451) Apply suggestions from code review ### 📊 Changes **3 files changed** (+35 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/filtersets.py` (+14 -0) 📝 `netbox/dcim/forms/model_forms.py` (+9 -2) 📝 `netbox/dcim/tests/test_filtersets.py` (+12 -0) </details> ### 📄 Description ### Fixes: #14058 - Limits platform selection to manufacturer and platforms with no manufacturer * Add new filter(s): * get_for_device_type * get_for_manufacturer * Configure form to utilize new filters * Add tests --- <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:25:05 +01:00
adam closed this issue 2025-12-29 23:25:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14540