Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11130 closed (fixed)

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

Reported by: phyfus 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 phyfus 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by phyfus

comment:1 Changed 6 years ago by phyfus

  • Cc johann@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by Alex

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 6 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:4 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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