mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00: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
|