Changes between Initial Version and Version 2 of Ticket #6322


Ignore:
Timestamp:
06/25/08 23:12:40 (8 years ago)
Author:
Adrian Holovaty
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6322

    • Property Triage Stage changed from Unreviewed to Ready for checkin
  • Ticket #6322 – Description

    initial v2  
    11When using ifchanged in a doubly-nested loop, the value is only reset to None on the inner loop's first iteration.  But if the ifchanged tag is inside another conditional, it may not be evaluated on the first iteration.  This can mean the value isn't properly reset:
    22
     3{{{
    34    {% for data in datalist %}
    45        {% for c,d in data %}
     
    89        {% endfor %}
    910    {% endfor %}
    10 
     11}}}
    1112The fix is to not examine forloop.first explicitly, but to annotate the forloop context.
Back to Top