1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #23914 -- Improved {% now %} to allow storing its result in the context.

Thanks to Tim for the review.
This commit is contained in:
Baptiste Mispelon
2014-11-25 19:24:57 +01:00
parent 3a9aa155e2
commit c335c0fee9
4 changed files with 31 additions and 3 deletions

View File

@@ -419,6 +419,9 @@ Templates
* Added a :class:`locmem.Loader <django.template.loaders.locmem.Loader>`
class that loads Django templates from a Python dictionary.
* The :ttag:`now` tag can now store its output in a context variable with the
usual syntax: ``{% now 'j n Y' as varname %}``.
Requests and Responses
^^^^^^^^^^^^^^^^^^^^^^