I have some items with totals for each school in a school district. Each item also has a grand total. The TotalClass has a name, total and dictionary of schools with their individual totals.
Based on another post I finally figured out how to get the school total for which I'm looking when looking through a list of school names: {% for item in item_totals %} <tr> <td>{{ item.name }}</td> {% for school in schools %} {% for school_total in item.schools.items %} {% ifequal school.name school_total.0 %} <td>{{ school_total.1 }}</td> {% endifequal %} {% endfor %} {% endfor %} <td>{{ item.total }}</td> </tr> {% endfor %} Is there any way to simplify that template? Any suggestions on ways to create a better template? All the curly braces and percent signs are hard to look at. Thanks in advance. Carlos Hanson --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---