I have a template in which I would like to do the following:
{% for item in loop %}
{% if [previous item].condition %}
<li>item.name</li>
{% endif %}
{% endfor %}
In other words, I want to do something with an item in the loop based on
whether the *previous* item has some condition set.
Is this possible?
Thanks,
Daniele
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---