From 45f5e0c980bd0e6387f5d4041677a027677fb785 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 10 May 2010 14:14:41 +0000 Subject: [PATCH] [1.1.X] Fixed #12135 -- Clarified custom template tag example. Thanks to EvilDMP for the report, and timo for the patch. Backport of r13220 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13225 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/howto/custom-template-tags.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index af2a5474d8..6ed9004157 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -751,7 +751,7 @@ like so: .. code-block:: html+django - {% get_current_time "%Y-%M-%d %I:%M %p" as my_current_time %} + {% current_time "%Y-%M-%d %I:%M %p" as my_current_time %}

The current time is {{ my_current_time }}.

To do that, you'll need to refactor both the compilation function and ``Node``