Opened 9 years ago

Closed 9 years ago

Last modified 7 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: master
Severity: Keywords:
Cc: johann@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Johann Heller

Attachment: patch.diff added

comment:1 Changed 9 years ago by Johann Heller

Cc: johann@… added

comment:2 Changed 9 years ago by Alex Gaynor

Triage Stage: UnreviewedReady for checkin

comment:3 Changed 9 years ago by Karen Tracey

Resolution: fixed
Status: newclosed

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

comment:4 Changed 7 years ago by Jacob

milestone: 1.1

Milestone 1.1 deleted

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