Ensure model is defined when rendering bulk_edit_button

This commit is contained in:
Brian Tiemann 2024-09-18 18:28:51 -04:00
parent f7dd09da08
commit a6634a2c8e

View File

@ -15,7 +15,7 @@
{% endwith %}
</div>
{% if request.htmx %}
{% if request.htmx and model %}
{# Include the updated object count for display elsewhere on the page #}
<div hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>