mirror of https://github.com/django/django.git
[1.4.x] Fixed #23499 -- Error in built-in template tag "now" documentation
Backport of ab8248361e
from master.
This commit is contained in:
parent
ba2be27613
commit
3132edae41
|
@ -744,11 +744,11 @@ Example::
|
||||||
It is {% now "jS F Y H:i" %}
|
It is {% now "jS F Y H:i" %}
|
||||||
|
|
||||||
Note that you can backslash-escape a format string if you want to use the
|
Note that you can backslash-escape a format string if you want to use the
|
||||||
"raw" value. In this example, "f" is backslash-escaped, because otherwise
|
"raw" value. In this example, both "o" and "f" are backslash-escaped, because
|
||||||
"f" is a format string that displays the time. The "o" doesn't need to be
|
otherwise each is a format string that displays the year and the time,
|
||||||
escaped, because it's not a format character::
|
respectively::
|
||||||
|
|
||||||
It is the {% now "jS o\f F" %}
|
It is the {% now "jS \o\f F" %}
|
||||||
|
|
||||||
This would display as "It is the 4th of September".
|
This would display as "It is the 4th of September".
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue