diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-18 11:34:11 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-18 11:35:35 -0500 |
| commit | 79561e7c3bee245f388fa57d995fc402357611ba (patch) | |
| tree | cbb956a85f9ae2f2717d3fe7239f74c6e9c83df0 | |
| parent | b6c05b2b94d475de773e933c20a8d6d8a5dca5e5 (diff) | |
[1.6.x] Corrected indentation in docs to prevent inadvertent blockquote.
Backport of c2d8da7555e3fef30c43f3ffe2e8963ca1f9fdd5 from stable/1.7.x
| -rw-r--r-- | docs/ref/request-response.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 3579fc9c19..4caf388b81 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -304,11 +304,11 @@ Methods .. method:: HttpRequest.is_ajax() - 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. - If you write your own XMLHttpRequest call (on the browser side), you'll - have to set this header manually if you want ``is_ajax()`` to work. + 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. + If you write your own XMLHttpRequest call (on the browser side), you'll + have to set this header manually if you want ``is_ajax()`` to work. If a response varies on whether or not it's requested via AJAX and you are using some form of caching like Django's :mod:`cache middleware |
