summaryrefslogtreecommitdiff
path: root/django/http/request.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/http/request.py')
-rw-r--r--django/http/request.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/http/request.py b/django/http/request.py
index 66809a74ed..083bf2d80f 100644
--- a/django/http/request.py
+++ b/django/http/request.py
@@ -262,6 +262,7 @@ class HttpRequest:
'request.is_ajax() is deprecated. See Django 3.1 release notes '
'for more details about this deprecation.',
RemovedInDjango40Warning,
+ stacklevel=2,
)
return self.META.get('HTTP_X_REQUESTED_WITH') == 'XMLHttpRequest'