#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)
Change History (5)
by , 15 years ago
Attachment: | patch.diff added |
---|
comment:1 by , 15 years ago
Cc: | added |
---|
comment:2 by , 15 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [10799]) Fixed #11130 -- Corrected code example in custom template tag doc. Thanks phyfus.