Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#11130 closed (fixed)

incorrect namespace error in django/docs/howto/custom-template-tags.txt code example

Reported by: Johann Heller Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: johann@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The surrounding code examples assume that the import statement used is from django import template.

The last code example in the Passing template variables to the tag section follows this except for the line:

self.date_to_be_formatted = Variable(date_to_be_formatted)

This line should read:

self.date_to_be_formatted = template.Variable(date_to_be_formatted)

Attachments (1)

patch.diff (592 bytes ) - added by Johann Heller 16 years ago.

Download all attachments as: .zip

Change History (5)

by Johann Heller, 16 years ago

Attachment: patch.diff added

comment:1 by Johann Heller, 16 years ago

Cc: johann@… added

comment:2 by Alex Gaynor, 16 years ago

Triage Stage: UnreviewedReady for checkin

comment:3 by Karen Tracey, 16 years ago

Resolution: fixed
Status: newclosed

(In [10799]) Fixed #11130 -- Corrected code example in custom template tag doc. Thanks phyfus.

comment:4 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

Note: See TracTickets for help on using tickets.
Back to Top