mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #30997 -- Deprecated HttpRequest.is_ajax().
This commit is contained in:
parent
7fa0fa45c5
commit
e348ab0d43
6 changed files with 31 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue