mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
@@ -1697,6 +1697,8 @@ class TemplateTests(TestCase):
|
||||
datetime.now().day, datetime.now().month, datetime.now().year)),
|
||||
'now06': ('''{% now "j 'n' Y"%}''', {}, '''%d '%d' %d''' % (
|
||||
datetime.now().day, datetime.now().month, datetime.now().year)),
|
||||
'now07': ('''{% now "j n Y" as N %}-{{N}}-''', {}, '''-%d %d %d-''' % (
|
||||
datetime.now().day, datetime.now().month, datetime.now().year)),
|
||||
|
||||
### URL TAG ########################################################
|
||||
# Successes
|
||||
|
||||
Reference in New Issue
Block a user