On 5/16/06, Facundo Casco <[EMAIL PROTECTED]> wrote:
> Hi, I have this structure provs = {'0134': ['PSM', 0], '0135': ['GRAN',
> 0]} that I need to access from a template.
> [...]
> what I need is
>
> 0134 PSM 0

This should do the trick:

{% for prov in provs.items %}
{{ prov.0 }} {{ prov.1.0 }} {{ prov.1.1 }}
{% endfor %}

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to