> Err.. I suck. This should be {% for data in allyears.items %}. :-(

Yep, that may work, but leaves the ordering up to the "items" method,
which isn't going to be ideal. In the case that you use a dict, you
should probably also use dictsort to make sure you get what you expect:
{% for data in allyears.items|dictsort:"0" %}
I think will work.

However in general, I think you should put as much logic as possible in
the views rather than the templates - which I why I suggested it was
better to use nested lists - but ultimately it depends on how easy it
is to choose between the two.

 -rob


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