I have some tuples like this:
categories = ( ( 'a', 'abc' ), ( 'b', 'def' ) )
How can I build select options from that in a template?
When I try this:
{% for c in categories %}
<option value="{{ c[0] }}">{{ c[1] }}</option>
{% endfor %}
I get this error:
Could not parse the remainder: [0]
Thanks,
--
Greg Donald
http://destiney.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---