Mario, While there are syntaxes for doing this sort of thing in the template language, I would expect the template to start looking messy, and be hard to maintain.
May I suggest that you wrap this stuff in a class to provide attribute like access to the data that you need? This puts the access logic in python, and makes the template code more transparent. Bill -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.