With the latest version of Django from SVN, it appears you can no
longer use sub-attributes of a template variable within a blocktrans
tag.  For instance, the following will give you a KeyError:

{% blocktrans %}by {{ item.author }} at{% endblocktrans %}

However, the following works just fine:

{% blocktrans with item.author as itemAuthor %}by {{ itemAuthor }} at{%
endblocktrans %}

Bug?  By design?  Misconfiguration?

Stack trace of the error is

Traceback (most recent call last):
File "c:\python24\lib\site-packages\django\template\__init__.py" in
render_node
  712. result = node.render(context)
File "C:\Python24\lib\site-packages\django\templatetags\i18n.py" in
render
  73. result = translation.gettext(singular) % context
File "c:\python24\lib\site-packages\django\template\context.py" in
__getitem__
  40. raise KeyError(key)

  KeyError at /planet/
  'item.author'


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to