On Tue, Feb 15, 2011 at 2:36 PM, Szabo, Patrick (LNG-VIE) <[email protected]> wrote: > According to youre link my synthax was correct: > > * Dictionary lookup. Example: foo["bar"] > * Attribute lookup. Example: foo.bar > * Method call. Example: foo.bar() > * List-index lookup. Example: foo[bar] > > Anyway none of those work :-( >
Is this in some way a joke? I'm not getting it. > > Von: [email protected] [mailto:[email protected]] Im > Auftrag von Tom Evans > http://docs.djangoproject.com/en/1.2/ref/templates/api/#rendering-a-context > > Templates use '.' as a special lookup when used in a variable name. > You can use a dot to do dictionary lookup, attribute lookup, method > calls and list index lookup. What you are trying to do is the latter. > > The correct way of doing it is: > > {{ buchung.0.0 }} > I refer you to my original response and the linked documentation. Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

