[PR #15456] [MERGED] Closes: #13918 - Add facility field #14597

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15456
Author: @DanSheps
Created: 3/17/2024
Status: Merged
Merged: 3/18/2024
Merged by: @jeremystretch

Base: featureHead: 13918-add-facility-field


📝 Commits (4)

📊 Changes

12 files changed (+55 additions, -14 deletions)

View changed files

📝 docs/models/dcim/location.md (+4 -0)
📝 netbox/dcim/api/serializers_/sites.py (+2 -2)
📝 netbox/dcim/filtersets.py (+2 -1)
📝 netbox/dcim/forms/bulk_import.py (+1 -1)
📝 netbox/dcim/forms/model_forms.py (+2 -2)
netbox/dcim/migrations/0186_location_facility.py (+18 -0)
📝 netbox/dcim/models/sites.py (+7 -1)
📝 netbox/dcim/search.py (+2 -1)
📝 netbox/dcim/tables/sites.py (+5 -3)
📝 netbox/dcim/tests/test_filtersets.py (+7 -3)
📝 netbox/dcim/tests/test_views.py (+1 -0)
📝 netbox/templates/dcim/location.html (+4 -0)

📄 Description

Closes: #13918 - Add facility field to Location model

  • Add facility field to model
  • Add filter field
  • Add form fields
  • Add tests
  • Add serializer field
  • Adjust template
  • Adjust docs

🔄 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/15456 **Author:** [@DanSheps](https://github.com/DanSheps) **Created:** 3/17/2024 **Status:** ✅ Merged **Merged:** 3/18/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13918-add-facility-field` --- ### 📝 Commits (4) - [`f4fbd30`](https://github.com/netbox-community/netbox/commit/f4fbd301ff383d854ba6f901849fb00b15d65b70) Fixes: #13918 - Add facilities field to Location model. - [`e9abaf1`](https://github.com/netbox-community/netbox/commit/e9abaf16c58f53226a264735a639a04ba647d641) Stupidly forgot to `git add` - [`dc7facb`](https://github.com/netbox-community/netbox/commit/dc7facb3327edf3c2863e3784c119525ec150096) Fix errant reference to site. - [`61fa725`](https://github.com/netbox-community/netbox/commit/61fa725c21349eb5ef4f576b09fe6644e03e1ac7) Misc cleanup ### 📊 Changes **12 files changed** (+55 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `docs/models/dcim/location.md` (+4 -0) 📝 `netbox/dcim/api/serializers_/sites.py` (+2 -2) 📝 `netbox/dcim/filtersets.py` (+2 -1) 📝 `netbox/dcim/forms/bulk_import.py` (+1 -1) 📝 `netbox/dcim/forms/model_forms.py` (+2 -2) ➕ `netbox/dcim/migrations/0186_location_facility.py` (+18 -0) 📝 `netbox/dcim/models/sites.py` (+7 -1) 📝 `netbox/dcim/search.py` (+2 -1) 📝 `netbox/dcim/tables/sites.py` (+5 -3) 📝 `netbox/dcim/tests/test_filtersets.py` (+7 -3) 📝 `netbox/dcim/tests/test_views.py` (+1 -0) 📝 `netbox/templates/dcim/location.html` (+4 -0) </details> ### 📄 Description ### Closes: #13918 - Add facility field to Location model * Add facility field to model * Add filter field * Add form fields * Add tests * Add serializer field * Adjust template * Adjust docs --- <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:24 +01:00
adam closed this issue 2025-12-29 23:25:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14597