[PR #3889] [MERGED] Fixes #3520: Add template_language to extras.Graph #12681

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3889
Author: @jeremystretch
Created: 1/10/2020
Status: Merged
Merged: 1/10/2020
Merged by: @jeremystretch

Base: develop-2.7Head: 3520-graph-template-language


📝 Commits (3)

📊 Changes

11 files changed (+104 additions, -13 deletions)

View changed files

📝 docs/additional-features/graphs.md (+5 -0)
📝 docs/release-notes/version-2.7.md (+2 -0)
📝 netbox/extras/admin.py (+2 -2)
📝 netbox/extras/api/serializers.py (+1 -1)
📝 netbox/extras/api/views.py (+1 -1)
📝 netbox/extras/filters.py (+1 -1)
📝 netbox/extras/migrations/0033_graph_type_template_language.py (+13 -0)
📝 netbox/extras/migrations/0034_configcontext_tags.py (+1 -1)
📝 netbox/extras/models.py (+24 -4)
📝 netbox/extras/tests/test_filters.py (+8 -3)
netbox/extras/tests/test_models.py (+46 -0)

📄 Description

Fixes: #3520

Add template_language field to the Graph model. This allows NetBox to support both Django and Jinja2 for source/link rendering.

Support for Django template rendering is planned to be removed from all models in v2.8.


🔄 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/3889 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/10/2020 **Status:** ✅ Merged **Merged:** 1/10/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.7` ← **Head:** `3520-graph-template-language` --- ### 📝 Commits (3) - [`9399652`](https://github.com/netbox-community/netbox/commit/9399652dd01d3e5677282d5b6f7a06dd2b019925) Add template_language field to Graph - [`123a58b`](https://github.com/netbox-community/netbox/commit/123a58bf7d09c804eb502220278ef9e1346538cd) Add tests for Graph rendering - [`3c247ac`](https://github.com/netbox-community/netbox/commit/3c247ac47df45f90bae5a4b00d13b9fcd15f8aeb) Changelog for #3520 ### 📊 Changes **11 files changed** (+104 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/additional-features/graphs.md` (+5 -0) 📝 `docs/release-notes/version-2.7.md` (+2 -0) 📝 `netbox/extras/admin.py` (+2 -2) 📝 `netbox/extras/api/serializers.py` (+1 -1) 📝 `netbox/extras/api/views.py` (+1 -1) 📝 `netbox/extras/filters.py` (+1 -1) 📝 `netbox/extras/migrations/0033_graph_type_template_language.py` (+13 -0) 📝 `netbox/extras/migrations/0034_configcontext_tags.py` (+1 -1) 📝 `netbox/extras/models.py` (+24 -4) 📝 `netbox/extras/tests/test_filters.py` (+8 -3) ➕ `netbox/extras/tests/test_models.py` (+46 -0) </details> ### 📄 Description ### Fixes: #3520 Add `template_language` field to the Graph model. This allows NetBox to support both Django and Jinja2 for source/link rendering. Support for Django template rendering is planned to be removed from all models in v2.8. --- <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:23:01 +01:00
adam closed this issue 2025-12-29 22:23:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12681