I have a a family tree; as describd below

>>> son={'first':'Swami', 'last':'Vaidya'}
>>> family={'f':father, 's':son}
>>> family
{'s': {'last': 'Vaidya', 'first': 'Swami'}, 'f': {'last': 'Vaidya',
'first': 'Mahesh'}}

I would like to render this in template.; What I can think of is

{% for key in family.keys  %}

   <li> { key } </li>

# this will give me father / son

{ % endfor %}

My problem how do I access parts like family['f'']['first'] should
give me "Mahesh" and family['s']['last'] should gibe me 'Swami;

Thank You
-Mahesh

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to