Fix bulk button rendering for HTMX requests

This commit is contained in:
Jeremy Stretch 2025-07-02 13:32:55 -04:00
parent b30a251069
commit 0199c55a52

View File

@ -27,12 +27,7 @@
{# Update the bulk action buttons with new query parameters #}
{% if actions %}
<div class="bulk-action-buttons" hx-swap-oob="outerHTML:.bulk-action-buttons">
{% if 'bulk_edit' in actions %}
{% bulk_edit_button model query_params=request.GET %}
{% endif %}
{% if 'bulk_delete' in actions %}
{% bulk_delete_button model query_params=request.GET %}
{% endif %}
{% action_buttons actions model multi=True %}
</div>
{% endif %}
{% endif %}