mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-06 23:58:17 -06:00
Ensure model is defined when rendering bulk_edit_button
This commit is contained in:
parent
f7dd09da08
commit
a6634a2c8e
@ -15,7 +15,7 @@
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if request.htmx %}
|
{% if request.htmx and model %}
|
||||||
{# Include the updated object count for display elsewhere on the page #}
|
{# Include the updated object count for display elsewhere on the page #}
|
||||||
<div hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>
|
<div hx-swap-oob="innerHTML:.total-object-count">{{ table.rows|length }}</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user