Changes between Initial Version and Version 2 of Ticket #6322


Ignore:
Timestamp:
06/25/2008 11:12:40 PM (7 years ago)
Author:
adrian
Comment:

Fixed formatting in description.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6322

    • Property Patch needs improvement unset
    • Property Triage Stage changed from Unreviewed to Ready for checkin
    • Property Needs tests unset
    • Property Needs documentation unset
  • 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