mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#8057: Enable dynamic tables for object list views
This commit is contained in:
5
netbox/utilities/htmx.py
Normal file
5
netbox/utilities/htmx.py
Normal file
@ -0,0 +1,5 @@
|
||||
def is_htmx(request):
|
||||
"""
|
||||
Returns True if the request was made by HTMX; False otherwise.
|
||||
"""
|
||||
return 'Hx-Request' in request.headers
|
Reference in New Issue
Block a user