diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2016-06-14 12:57:17 +0300 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2016-06-14 11:57:17 +0200 |
| commit | 7003174fec188bd5a21e3d62bd5e13e80f6f329c (patch) | |
| tree | ef2121fb6902007f3e2896d1aa6fc825c1c44f4f /docs/ref | |
| parent | ac06cb0e564b57b256ede98754586f36d2751b72 (diff) | |
Fixed #26754 -- Documented django.template.context_processors.tz
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/api.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 94492702ca..2054a5e4d8 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -736,6 +736,14 @@ tag for protection against :doc:`Cross Site Request Forgeries If this processor is enabled, every ``RequestContext`` will contain a variable ``request``, which is the current :class:`~django.http.HttpRequest`. +``django.template.context_processors.tz`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. function:: tz + +If this processor is enabled, every ``RequestContext`` will contain a variable +``TIME_ZONE``, providing the name of the currently active time zone. + ``django.contrib.messages.context_processors.messages`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
