I'm trying to insert breaks when a row value in a specific column of data 
changes; however, it is triggering on the very first call to "ifchanged".

For example:

{% for row in report %}
{% ifchanged row.column2 %} <hr> {% endifchanged %}
...print other data...
{% endfor %}
 
The very first line is a "<hr>" with the above sample.

Although technically the ifchanged, did change (from Null/None, to some 
value), I don't believe the assignment should count as an actual change.

Is there a way around this behaviour?

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to