Skip to content

Commit

Permalink
Fixes #15652: Fix the display of error messages after attempting to d…
Browse files Browse the repository at this point in the history
…elete an object
  • Loading branch information
jeremystretch committed Apr 15, 2024
1 parent 0da8164 commit 4e4c277
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions netbox/utilities/htmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4e4c277

Please sign in to comment.