I'm sure this must be a FAQ but I can't see the answer anywhere... I'd like to buld a table from a for loop. One field in each line will depend on the previous line, so I'd like to do something like this:
{% for line in lines %} {% if notequal line.name prevname %} {{ line.name }} {% endif %} set prevname=line.name {% endfor %} but I can't see anywhere in the documentation how I set prevname. Any pointers welcome Rachel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---