[PR #10763] [MERGED] Closes #10761: Enable associating an export template with multiple objects #13687

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/10763
Author: @jeremystretch
Created: 10/26/2022
Status: Merged
Merged: 10/26/2022
Merged by: @jeremystretch

Base: featureHead: 10761-exporttemplate-content-types


📝 Commits (1)

  • 16919cc Closes #10761: Enable associating an export template with multiple object types

📊 Changes

16 files changed (+104 additions, -56 deletions)

View changed files

📝 docs/release-notes/version-3.4.md (+4 -1)
📝 netbox/extras/api/serializers.py (+3 -2)
📝 netbox/extras/filtersets.py (+5 -1)
📝 netbox/extras/forms/bulk_edit.py (+0 -5)
📝 netbox/extras/forms/bulk_import.py (+3 -3)
📝 netbox/extras/forms/filtersets.py (+2 -2)
📝 netbox/extras/forms/model_forms.py (+2 -2)
📝 netbox/extras/graphql/types.py (+1 -1)
netbox/extras/migrations/0082_exporttemplate_content_types.py (+40 -0)
📝 netbox/extras/models/models.py (+5 -11)
📝 netbox/extras/tests/test_api.py (+5 -8)
📝 netbox/extras/tests/test_filtersets.py (+9 -6)
📝 netbox/extras/tests/test_views.py (+11 -8)
📝 netbox/netbox/views/generic/bulk_views.py (+1 -1)
📝 netbox/templates/extras/exporttemplate.html (+12 -4)
📝 netbox/utilities/templatetags/buttons.py (+1 -1)

📄 Description

Closes: #10761

  • Change content_type on ExportTemplate to a M2M relationship (and rename to content_types)
  • Add a migration to accommodate the field change and migrate existing assignments

🔄 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/10763 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/26/2022 **Status:** ✅ Merged **Merged:** 10/26/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `10761-exporttemplate-content-types` --- ### 📝 Commits (1) - [`16919cc`](https://github.com/netbox-community/netbox/commit/16919cc1d9484635e5fb9d6c1da9dd9344db2747) Closes #10761: Enable associating an export template with multiple object types ### 📊 Changes **16 files changed** (+104 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-3.4.md` (+4 -1) 📝 `netbox/extras/api/serializers.py` (+3 -2) 📝 `netbox/extras/filtersets.py` (+5 -1) 📝 `netbox/extras/forms/bulk_edit.py` (+0 -5) 📝 `netbox/extras/forms/bulk_import.py` (+3 -3) 📝 `netbox/extras/forms/filtersets.py` (+2 -2) 📝 `netbox/extras/forms/model_forms.py` (+2 -2) 📝 `netbox/extras/graphql/types.py` (+1 -1) ➕ `netbox/extras/migrations/0082_exporttemplate_content_types.py` (+40 -0) 📝 `netbox/extras/models/models.py` (+5 -11) 📝 `netbox/extras/tests/test_api.py` (+5 -8) 📝 `netbox/extras/tests/test_filtersets.py` (+9 -6) 📝 `netbox/extras/tests/test_views.py` (+11 -8) 📝 `netbox/netbox/views/generic/bulk_views.py` (+1 -1) 📝 `netbox/templates/extras/exporttemplate.html` (+12 -4) 📝 `netbox/utilities/templatetags/buttons.py` (+1 -1) </details> ### 📄 Description ### Closes: #10761 - Change `content_type` on ExportTemplate to a M2M relationship (and rename to `content_types`) - Add a migration to accommodate the field change and migrate existing assignments --- <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:20:16 +01:00
adam closed this issue 2025-12-29 23:20:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13687