[PR #9520] [MERGED] Fixes #9501 - Add configuration option JINJA2_FILTERS #13474

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9520
Author: @kkthxbye-code
Created: 6/10/2022
Status: Merged
Merged: 6/14/2022
Merged by: @jeremystretch

Base: developHead: fix-9501


📝 Commits (1)

  • d1aa820 Add configuration option JINJA2_FILTERS

📊 Changes

3 files changed (+19 additions, -1 deletions)

View changed files

📝 docs/configuration/optional-settings.md (+14 -0)
📝 netbox/netbox/settings.py (+1 -0)
📝 netbox/utilities/utils.py (+4 -1)

📄 Description

Fixes: #9501

Adds JINJA2_FILTERS. Simply adds the defined filters to the jinja2 environment.

I couldn't get the docs to build for some reason (not even without the changes), so I'm usure if it looks alright.


🔄 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/9520 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 6/10/2022 **Status:** ✅ Merged **Merged:** 6/14/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `fix-9501` --- ### 📝 Commits (1) - [`d1aa820`](https://github.com/netbox-community/netbox/commit/d1aa820856f0b80adffe8ea79f9a460589013fe3) Add configuration option JINJA2_FILTERS ### 📊 Changes **3 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/optional-settings.md` (+14 -0) 📝 `netbox/netbox/settings.py` (+1 -0) 📝 `netbox/utilities/utils.py` (+4 -1) </details> ### 📄 Description ### Fixes: #9501 Adds JINJA2_FILTERS. Simply adds the defined filters to the jinja2 environment. I couldn't get the docs to build for some reason (not even without the changes), so I'm usure if it looks alright. --- <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:19:04 +01:00
adam closed this issue 2025-12-29 23:19:04 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13474