Ticket #11130: patch.diff

File patch.diff, 592 bytes (added by Johann Heller, 15 years ago)
  • docs/howto/custom-template-tags.txt

     
    543543
    544544    class FormatTimeNode(template.Node):
    545545        def __init__(self, date_to_be_formatted, format_string):
    546             self.date_to_be_formatted = Variable(date_to_be_formatted)
     546            self.date_to_be_formatted = template.Variable(date_to_be_formatted)
    547547            self.format_string = format_string
    548548
    549549        def render(self, context):
Back to Top