From 4e4c2777113595273275255486a27c2246a7aec6 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 15 Apr 2024 14:40:33 -0400 Subject: [PATCH] Fixes #15652: Fix the display of error messages after attempting to delete an object --- netbox/utilities/htmx.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netbox/utilities/htmx.py b/netbox/utilities/htmx.py index 91a2c5adaca..55e3b26161e 100644 --- a/netbox/utilities/htmx.py +++ b/netbox/utilities/htmx.py @@ -2,12 +2,10 @@ 'htmx_partial', ) -PAGE_CONTAINER_ID = 'page-content' - def htmx_partial(request): """ Determines whether to render partial (versus complete) HTML content in response to an HTMX request, based on the target element. """ - return request.htmx and request.htmx.target and request.htmx.target != PAGE_CONTAINER_ID + return request.htmx and not request.htmx.boosted