1
0
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:
jeremystretch
2021-12-13 16:51:59 -05:00
parent c50dc1eb35
commit 91f33d3289
7 changed files with 107 additions and 4 deletions

5
netbox/utilities/htmx.py Normal file
View 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