Opened 7 years ago

Closed 7 years ago

#5969 closed (fixed)

Variable name resolution broken as of 6682?

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

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 Changed 7 years ago by mtredinnick

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

(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