[PR #17746] [CLOSED] Closes #6414: Additional ForeignKeys for prefix scope #15181

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17746
Author: @jeremystretch
Created: 10/11/2024
Status: Closed

Base: featureHead: 6414-prefix-scope-multi-fk


📝 Commits (1)

  • 5dd92ff #6414: Add FKs for region, site group, and location on Prefix

📊 Changes

13 files changed (+209 additions, -46 deletions)

View changed files

📝 netbox/ipam/api/serializers_/ip.py (+22 -6)
📝 netbox/ipam/api/views.py (+1 -1)
📝 netbox/ipam/constants.py (+5 -0)
📝 netbox/ipam/filtersets.py (+13 -1)
📝 netbox/ipam/forms/model_forms.py (+39 -6)
📝 netbox/ipam/graphql/types.py (+9 -0)
netbox/ipam/migrations/0071_prefix_scope.py (+28 -0)
📝 netbox/ipam/models/ip.py (+45 -1)
📝 netbox/ipam/tables/ip.py (+23 -3)
📝 netbox/ipam/tests/test_filtersets.py (+8 -8)
📝 netbox/ipam/tests/test_views.py (+3 -3)
📝 netbox/ipam/views.py (+7 -7)
📝 netbox/templates/ipam/prefix.html (+6 -10)

📄 Description

Fixes: #6414

This PR offers an alternative implementation to #17692


🔄 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/17746 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/11/2024 **Status:** ❌ Closed **Base:** `feature` ← **Head:** `6414-prefix-scope-multi-fk` --- ### 📝 Commits (1) - [`5dd92ff`](https://github.com/netbox-community/netbox/commit/5dd92ff04843d5b5431ea74b8da9001b37dae7bf) #6414: Add FKs for region, site group, and location on Prefix ### 📊 Changes **13 files changed** (+209 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `netbox/ipam/api/serializers_/ip.py` (+22 -6) 📝 `netbox/ipam/api/views.py` (+1 -1) 📝 `netbox/ipam/constants.py` (+5 -0) 📝 `netbox/ipam/filtersets.py` (+13 -1) 📝 `netbox/ipam/forms/model_forms.py` (+39 -6) 📝 `netbox/ipam/graphql/types.py` (+9 -0) ➕ `netbox/ipam/migrations/0071_prefix_scope.py` (+28 -0) 📝 `netbox/ipam/models/ip.py` (+45 -1) 📝 `netbox/ipam/tables/ip.py` (+23 -3) 📝 `netbox/ipam/tests/test_filtersets.py` (+8 -8) 📝 `netbox/ipam/tests/test_views.py` (+3 -3) 📝 `netbox/ipam/views.py` (+7 -7) 📝 `netbox/templates/ipam/prefix.html` (+6 -10) </details> ### 📄 Description ### Fixes: #6414 This PR offers an alternative implementation to #17692 --- <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:20:27 +01:00
adam closed this issue 2025-12-30 00:20:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15181