[PR #4334] [MERGED] Closes #4320: Clean up template tags filters #12817

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4334
Author: @jeremystretch
Created: 3/9/2020
Status: Merged
Merged: 3/9/2020
Merged by: @jeremystretch

Base: developHead: 4320-clean-up-template-tags-filters


📝 Commits (6)

  • 2224635 Remove oneline filter
  • 0439be2 Remove unused getlist and getkey filters
  • 1423fd9 Rename gfm filter to render_markdown
  • 1069ad2 Remove unused contains filter
  • 16d3ceb Update markdown filter name
  • 15ab30d Replace model_name and model_name_verbose filters with meta

📊 Changes

18 files changed (+25 additions, -66 deletions)

View changed files

📝 netbox/templates/circuits/circuit.html (+1 -1)
📝 netbox/templates/circuits/provider.html (+3 -3)
📝 netbox/templates/dcim/cable_connect.html (+1 -1)
📝 netbox/templates/dcim/device.html (+1 -1)
📝 netbox/templates/dcim/devicetype.html (+1 -1)
📝 netbox/templates/dcim/inc/cable_termination.html (+1 -1)
📝 netbox/templates/dcim/inc/cable_trace_end.html (+1 -1)
📝 netbox/templates/dcim/powerfeed.html (+1 -1)
📝 netbox/templates/dcim/rack.html (+1 -1)
📝 netbox/templates/dcim/site.html (+2 -2)
📝 netbox/templates/extras/script.html (+1 -1)
📝 netbox/templates/extras/tag.html (+1 -1)
📝 netbox/templates/ipam/ipaddress_edit.html (+1 -1)
📝 netbox/templates/tenancy/tenant.html (+1 -1)
📝 netbox/templates/utilities/obj_list.html (+1 -1)
📝 netbox/templates/virtualization/cluster.html (+1 -1)
📝 netbox/templates/virtualization/virtualmachine.html (+1 -1)
📝 netbox/utilities/templatetags/helpers.py (+5 -46)

📄 Description

Fixes: #4320

  • Remove unused template filters
  • Rename gfm filter to render_markdown

🔄 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/4334 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 3/9/2020 **Status:** ✅ Merged **Merged:** 3/9/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4320-clean-up-template-tags-filters` --- ### 📝 Commits (6) - [`2224635`](https://github.com/netbox-community/netbox/commit/22246353e21eb37aaf398414c90a159443e576f5) Remove oneline filter - [`0439be2`](https://github.com/netbox-community/netbox/commit/0439be287093a8423d1e142dc5f87f962a6b794a) Remove unused getlist and getkey filters - [`1423fd9`](https://github.com/netbox-community/netbox/commit/1423fd902435cb4c9edffec20bd04fd817ce0158) Rename gfm filter to render_markdown - [`1069ad2`](https://github.com/netbox-community/netbox/commit/1069ad21d8c154b25c657e281934be1a466f92fd) Remove unused contains filter - [`16d3ceb`](https://github.com/netbox-community/netbox/commit/16d3cebf3e6e2e38b88a6a5cae8da6d66079f593) Update markdown filter name - [`15ab30d`](https://github.com/netbox-community/netbox/commit/15ab30d0c6bde14162b8b276c2b74035e027f5cf) Replace model_name and model_name_verbose filters with meta ### 📊 Changes **18 files changed** (+25 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `netbox/templates/circuits/circuit.html` (+1 -1) 📝 `netbox/templates/circuits/provider.html` (+3 -3) 📝 `netbox/templates/dcim/cable_connect.html` (+1 -1) 📝 `netbox/templates/dcim/device.html` (+1 -1) 📝 `netbox/templates/dcim/devicetype.html` (+1 -1) 📝 `netbox/templates/dcim/inc/cable_termination.html` (+1 -1) 📝 `netbox/templates/dcim/inc/cable_trace_end.html` (+1 -1) 📝 `netbox/templates/dcim/powerfeed.html` (+1 -1) 📝 `netbox/templates/dcim/rack.html` (+1 -1) 📝 `netbox/templates/dcim/site.html` (+2 -2) 📝 `netbox/templates/extras/script.html` (+1 -1) 📝 `netbox/templates/extras/tag.html` (+1 -1) 📝 `netbox/templates/ipam/ipaddress_edit.html` (+1 -1) 📝 `netbox/templates/tenancy/tenant.html` (+1 -1) 📝 `netbox/templates/utilities/obj_list.html` (+1 -1) 📝 `netbox/templates/virtualization/cluster.html` (+1 -1) 📝 `netbox/templates/virtualization/virtualmachine.html` (+1 -1) 📝 `netbox/utilities/templatetags/helpers.py` (+5 -46) </details> ### 📄 Description ### Fixes: #4320 - Remove unused template filters - Rename `gfm` filter to `render_markdown` --- <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:47 +01:00
adam closed this issue 2025-12-29 22:23:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12817