0001-django4-replaced-deprecated-request.is_ajax-call-685.patch
mellon/middleware.py | ||
---|---|---|
44 | 44 |
if 'no-passive-auth' in request.GET: |
45 | 45 |
return |
46 | 46 |
# Skip AJAX requests |
47 |
if request.is_ajax():
|
|
47 |
if request.headers.get('x-requested-with') == 'XMLHttpRequest':
|
|
48 | 48 |
return |
49 | 49 |
# Skip AJAX and media/script requests, unless mellon_no_passive is False on the view |
50 | 50 |
if getattr(view_func, 'mellon_no_passive', True) and 'text/html' not in request.META.get( |
51 |
- |