From a6634a2c8e586f69d6f5b2ff39cce503487d1168 Mon Sep 17 00:00:00 2001 From: Brian Tiemann Date: Wed, 18 Sep 2024 18:28:51 -0400 Subject: [PATCH] Ensure model is defined when rendering bulk_edit_button --- netbox/templates/htmx/table.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/htmx/table.html b/netbox/templates/htmx/table.html index 5728789fa..171107c34 100644 --- a/netbox/templates/htmx/table.html +++ b/netbox/templates/htmx/table.html @@ -15,7 +15,7 @@ {% endwith %} -{% if request.htmx %} +{% if request.htmx and model %} {# Include the updated object count for display elsewhere on the page #}
{{ table.rows|length }}