Opened 16 years ago

Closed 16 years ago

#5969 closed (fixed)

Variable name resolution broken as of 6682?

Reported by: Jarek Zgoda Owned by: nobody
Component: Template system Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The code that worked fine before [6682] now throws KeyError:

{% blocktrans count comment_count as counter %}1 comment{% plural %}{{ counter }} comments{% endblocktrans %}
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render_node
  822. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/templatetags/i18n.py" in render
  84. return result % data

  KeyError at /
  u'counter'

Change History (1)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [6689]) Fixed #5969 -- Corrected a problem introduced in [6682].

*sigh* As usual, the one case I forget to test turned out to be broken.

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