Many views broken in 3.1.3 due to moved "templatetags/tag.html" #5849

Closed
opened 2025-12-29 19:33:27 +01:00 by adam · 1 comment
Owner

Originally created by @bluikko on GitHub (Dec 30, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.3

Python version

3.8

Steps to Reproduce

  1. Update from 3.1.2 to 3.1.3
  2. Try to open Devices or Virtual Machines views, there is an error about missing "utilities/templatetags/tag.html"

It seem to stem from f369b5f588 where tables.py was not updated after file moved?

Now it might also be that I screwed up my update, but it is the same automated process that has worked for a number of updates.

Expected Behavior

The views should work like before.

Observed Behavior

It seems like the file netbox/utilities/tables.py has a wrong path for an include, seems some files have moved around.

It is only result of my quick troubleshooting while trying to get the production instance back up - my fault, should have actually clicked around plenty in the testing instance before updating production....

Originally created by @bluikko on GitHub (Dec 30, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.3 ### Python version 3.8 ### Steps to Reproduce 1. Update from 3.1.2 to 3.1.3 2. Try to open Devices or Virtual Machines views, there is an error about missing "utilities/templatetags/tag.html" It seem to stem from https://github.com/netbox-community/netbox/commit/f369b5f588ad29d9de0f36cfdce586bd3769e7eb where `tables.py` was not updated after file moved? Now it might also be that I screwed up my update, but it is the same automated process that has worked for a number of updates. ### Expected Behavior The views should work like before. ### Observed Behavior It seems like the file `netbox/utilities/tables.py` has a wrong path for an include, seems some files have moved around. It is only result of my quick troubleshooting while trying to get the production instance back up - my fault, should have actually clicked around plenty in the testing instance before updating production....
adam added the type: bugstatus: accepted labels 2025-12-29 19:33:27 +01:00
adam closed this issue 2025-12-29 19:33:28 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 30, 2021):

Looks like the template is being rendered directly by TagColumn, rather than using the {% tag %} template tag, so it was missed during cleanup.

As a temporary workaround, you can copy netbox/utilities/templates/helpers/tag.html to netbox/templates/utilities/templatetags/tag.html, or reset the table configuration to hide the Tags column (under user preferences).

@jeremystretch commented on GitHub (Dec 30, 2021): Looks like the template is being rendered directly by TagColumn, rather than using the `{% tag %}` template tag, so it was missed during cleanup. As a temporary workaround, you can copy `netbox/utilities/templates/helpers/tag.html` to `netbox/templates/utilities/templatetags/tag.html`, or reset the table configuration to hide the Tags column (under user preferences).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5849