fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/apps/pjax/context_processors.py

10 lines
203 B
Python

def pjax(request):
"""
Determines if a request if a pjax request by the X-PJAX header
"""
is_pjax = request.META.get('HTTP_X_PJAX', False)
return {
'is_pjax': is_pjax,
}