1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #30997 -- Deprecated HttpRequest.is_ajax().

This commit is contained in:
Claude Paroz
2020-01-23 18:01:41 +01:00
committed by Mariusz Felisiak
parent 7fa0fa45c5
commit e348ab0d43
6 changed files with 31 additions and 1 deletions

View File

@@ -431,6 +431,8 @@ Methods
.. method:: HttpRequest.is_ajax()
.. deprecated:: 3.1
Returns ``True`` if the request was made via an ``XMLHttpRequest``, by
checking the ``HTTP_X_REQUESTED_WITH`` header for the string
``'XMLHttpRequest'``. Most modern JavaScript libraries send this header.