Django

Code

Ticket #5969 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Variable name resolution broken as of 6682?

Reported by: zgoda Assigned to: nobody
Milestone: Component: Template system
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation:
Needs tests: Patch needs improvement:

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'

Attachments

Change History

11/17/07 21:36:04 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(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.


Add/Change #5969 (Variable name resolution broken as of 6682?)




Change Properties
Action