0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed #11130 -- Corrected code example in custom template tag doc. Thanks phyfus.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2009-05-17 16:31:02 +00:00
parent 2cbec63f0b
commit 92e5249a67

View File

@ -543,7 +543,7 @@ for example::
class FormatTimeNode(template.Node): class FormatTimeNode(template.Node):
def __init__(self, date_to_be_formatted, format_string): def __init__(self, date_to_be_formatted, format_string):
self.date_to_be_formatted = Variable(date_to_be_formatted) self.date_to_be_formatted = template.Variable(date_to_be_formatted)
self.format_string = format_string self.format_string = format_string
def render(self, context): def render(self, context):