diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-05-22 00:47:32 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-05-22 06:48:26 +0200 |
| commit | a7515c3532d62ac3f6cb48bbd08dc7cfe175427e (patch) | |
| tree | 3b63588a3c46f25a523ca0395fde8a4b13ec42bd | |
| parent | 83605a17f07e533c40e5a5367d99148bd98866b8 (diff) | |
[2.2.x] Fixed datetime string format examples in docs/howto/custom-template-tags.txt.
Backport of f011d9ea56f9b4385cc7c63c542b7403fef2fde1 from master
| -rw-r--r-- | docs/howto/custom-template-tags.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index aa61b912b4..c311607af7 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -1014,7 +1014,7 @@ Here's how you'd use this new version of the tag: .. code-block:: html+django - {% current_time "%Y-%M-%d %I:%M %p" %}<p>The time is {{ current_time }}.</p> + {% current_time "%Y-%m-%d %I:%M %p" %}<p>The time is {{ current_time }}.</p> .. admonition:: Variable scope in context @@ -1032,7 +1032,7 @@ like so: .. code-block:: html+django - {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %} + {% current_time "%Y-%m-%d %I:%M %p" as my_current_time %} <p>The current time is {{ my_current_time }}.</p> To do that, you'll need to refactor both the compilation function and ``Node`` |
