diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-10 12:16:15 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-10 13:31:25 +0100 |
| commit | dfda5ff7226c2719750fc06e633ec7234c23b300 (patch) | |
| tree | 5cf3d96d431eecc1924d68e7b205cf906f20297f /docs/ref | |
| parent | 6554f00df6cfe3be7d843025a3f53fe124cfd756 (diff) | |
[4.0.x] Corrected signatures of some functions in docs.
Backport of 178109c1734ccc16386c3e3cbae1465c7a1b8ed8 from main
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/api.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 7e9812fffb..1082823e71 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -654,7 +654,7 @@ Here's what each of the built-in processors does: ``django.contrib.auth.context_processors.auth`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: auth +.. function:: auth(request) If this processor is enabled, every ``RequestContext`` will contain these variables: @@ -672,7 +672,7 @@ variables: ``django.template.context_processors.debug`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: debug +.. function:: debug(request) If this processor is enabled, every ``RequestContext`` will contain these two variables -- but only if your :setting:`DEBUG` setting is set to ``True`` and @@ -689,7 +689,7 @@ the request's IP address (``request.META['REMOTE_ADDR']``) is in the ``django.template.context_processors.i18n`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: i18n +.. function:: i18n(request) If this processor is enabled, every ``RequestContext`` will contain these variables: @@ -713,7 +713,7 @@ If this processor is enabled, every ``RequestContext`` will contain a variable ``django.template.context_processors.static`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: static +.. function:: static(request) If this processor is enabled, every ``RequestContext`` will contain a variable ``STATIC_URL``, providing the value of the :setting:`STATIC_URL` setting. @@ -734,7 +734,7 @@ If this processor is enabled, every ``RequestContext`` will contain a variable ``django.template.context_processors.tz`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. function:: tz +.. function:: tz(request) If this processor is enabled, every ``RequestContext`` will contain a variable ``TIME_ZONE``, providing the name of the currently active time zone. |
