diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index f5aa47d7d4..c6f76772de 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -543,7 +543,7 @@ for example:: class FormatTimeNode(template.Node): 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 def render(self, context):