[PR #7610] [MERGED] Closes #6297: Extend tag support to organizational models #13257

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/7610
Author: @jeremystretch
Created: 10/21/2021
Status: Merged
Merged: 10/21/2021
Merged by: @jeremystretch

Base: featureHead: 6497-organizational-model-tags


📝 Commits (3)

📊 Changes

104 files changed (+541 additions, -196 deletions)

View changed files

📝 docs/development/models.md (+2 -2)
📝 docs/models/extras/tag.md (+0 -3)
📝 docs/release-notes/version-3.1.md (+18 -0)
📝 netbox/circuits/api/serializers.py (+3 -5)
📝 netbox/circuits/api/views.py (+1 -1)
📝 netbox/circuits/forms/bulk_edit.py (+1 -1)
📝 netbox/circuits/forms/models.py (+5 -1)
netbox/circuits/migrations/0003_extend_tag_support.py (+20 -0)
📝 netbox/circuits/models.py (+1 -1)
📝 netbox/circuits/tables.py (+4 -1)
📝 netbox/circuits/tests/test_views.py (+3 -0)
📝 netbox/dcim/api/serializers.py (+16 -17)
📝 netbox/dcim/api/views.py (+7 -7)
📝 netbox/dcim/forms/bulk_edit.py (+7 -7)
📝 netbox/dcim/forms/models.py (+36 -8)
netbox/dcim/migrations/0138_extend_tag_support.py (+50 -0)
📝 netbox/dcim/models/devices.py (+3 -3)
📝 netbox/dcim/models/racks.py (+1 -1)
📝 netbox/dcim/models/sites.py (+3 -3)
📝 netbox/dcim/tables/devices.py (+10 -2)

...and 80 more files

📄 Description

Closes: #6497

Adds tag support for the following models:

  • circuits.CircuitType
  • dcim.DeviceRole
  • dcim.Location
  • dcim.Manufacturer
  • dcim.Platform
  • dcim.RackRole
  • dcim.Region
  • dcim.SiteGroup
  • ipam.RIR
  • ipam.Role
  • ipam.VLANGroup
  • tenancy.ContactGroup
  • tenancy.ContactRole
  • tenancy.TenantGroup
  • virtualization.ClusterGroup
  • virtualization.ClusterType

Also cleans up the tag inclusion panel a bit, eliminating the need to pass context variables.


🔄 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/7610 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/21/2021 **Status:** ✅ Merged **Merged:** 10/21/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `6497-organizational-model-tags` --- ### 📝 Commits (3) - [`cfb3897`](https://github.com/netbox-community/netbox/commit/cfb3897047ff6fc38586466f56468eb9bb3ccba4) Add tags to organizational & nested group models - [`6f05f17`](https://github.com/netbox-community/netbox/commit/6f05f17c62ee075a7a997554e981ad81489ec2f6) Standardize & simplify tags panel inclusion - [`4932e4f`](https://github.com/netbox-community/netbox/commit/4932e4f8c64560a453542b8729dea49d0b590ee5) Changelog for #6497 ### 📊 Changes **104 files changed** (+541 additions, -196 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/models.md` (+2 -2) 📝 `docs/models/extras/tag.md` (+0 -3) 📝 `docs/release-notes/version-3.1.md` (+18 -0) 📝 `netbox/circuits/api/serializers.py` (+3 -5) 📝 `netbox/circuits/api/views.py` (+1 -1) 📝 `netbox/circuits/forms/bulk_edit.py` (+1 -1) 📝 `netbox/circuits/forms/models.py` (+5 -1) ➕ `netbox/circuits/migrations/0003_extend_tag_support.py` (+20 -0) 📝 `netbox/circuits/models.py` (+1 -1) 📝 `netbox/circuits/tables.py` (+4 -1) 📝 `netbox/circuits/tests/test_views.py` (+3 -0) 📝 `netbox/dcim/api/serializers.py` (+16 -17) 📝 `netbox/dcim/api/views.py` (+7 -7) 📝 `netbox/dcim/forms/bulk_edit.py` (+7 -7) 📝 `netbox/dcim/forms/models.py` (+36 -8) ➕ `netbox/dcim/migrations/0138_extend_tag_support.py` (+50 -0) 📝 `netbox/dcim/models/devices.py` (+3 -3) 📝 `netbox/dcim/models/racks.py` (+1 -1) 📝 `netbox/dcim/models/sites.py` (+3 -3) 📝 `netbox/dcim/tables/devices.py` (+10 -2) _...and 80 more files_ </details> ### 📄 Description ### Closes: #6497 Adds tag support for the following models: * circuits.CircuitType * dcim.DeviceRole * dcim.Location * dcim.Manufacturer * dcim.Platform * dcim.RackRole * dcim.Region * dcim.SiteGroup * ipam.RIR * ipam.Role * ipam.VLANGroup * tenancy.ContactGroup * tenancy.ContactRole * tenancy.TenantGroup * virtualization.ClusterGroup * virtualization.ClusterType Also cleans up the tag inclusion panel a bit, eliminating the need to pass context variables. --- <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:17 +01:00
adam closed this issue 2025-12-29 22:26:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13257