Changes between Initial Version and Version 2 of Ticket #6322


Ignore:
Timestamp:
Jun 25, 2008, 11:12:40 PM (16 years ago)
Author:
Adrian Holovaty
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6322

    • Property Triage Stage UnreviewedReady 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