Skip to content

Commit b077c66

Browse files
committed
Fixes #16542: Fix bulk form operations when HTMX is enabled
1 parent 6f35a2a commit b077c66

File tree

1 file changed

+2
-1
lines changed
  • netbox/utilities/templatetags/builtins

1 file changed

+2
-1
lines changed

netbox/utilities/templatetags/builtins/tags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django import template
2+
from django.utils.safestring import mark_safe
23

34
from extras.choices import CustomFieldTypeChoices
45
from utilities.querydict import dict_to_querydict
@@ -124,5 +125,5 @@ def formaction(context):
124125
if HTMX navigation is enabled (per the user's preferences).
125126
"""
126127
if context.get('htmx_navigation', False):
127-
return 'hx-push-url="true" hx-post'
128+
return mark_safe('hx-push-url="true" hx-post')
128129
return 'formaction'

0 commit comments

Comments
 (0)