We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f35a2a commit b077c66Copy full SHA for b077c66
netbox/utilities/templatetags/builtins/tags.py
@@ -1,4 +1,5 @@
1
from django import template
2
+from django.utils.safestring import mark_safe
3
4
from extras.choices import CustomFieldTypeChoices
5
from utilities.querydict import dict_to_querydict
@@ -124,5 +125,5 @@ def formaction(context):
124
125
if HTMX navigation is enabled (per the user's preferences).
126
"""
127
if context.get('htmx_navigation', False):
- return 'hx-push-url="true" hx-post'
128
+ return mark_safe('hx-push-url="true" hx-post')
129
return 'formaction'
0 commit comments