I have a list of python objects with attributes, which is supplied to the
django templating engine. I access the first element in the list, to get a
particular attribute 'title', from it. Here is the code:
{{ list|first.title }}
The error given is:
TemplateSyntaxError: Could not parse the remainder: '.title' from
'articles|first.title'
Can anyone explain to me why this occurs, and what I can do to fix it?
--
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.