mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-26 03:11:49 +01:00
6 lines
148 B
Python
6 lines
148 B
Python
def is_htmx(request):
|
|
"""
|
|
Returns True if the request was made by HTMX; False otherwise.
|
|
"""
|
|
return 'Hx-Request' in request.headers
|