Fixes #15652: Fix the display of error messages after attempting to delete an object

This commit is contained in:
Jeremy Stretch 2024-04-15 14:40:33 -04:00
parent 0da8164600
commit 4e4c277711
1 changed files with 1 additions and 3 deletions

View File

@ -2,12 +2,10 @@ __all__ = (
'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