1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
netbox-community-netbox/netbox/utilities/htmx.py

12 lines
269 B
Python
Raw Normal View History

__all__ = (
'htmx_partial',
)
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 not request.htmx.boosted