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?


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+unsubscribe@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupdjango-users @
categoriesdjango, python
postedMay 27, '13 at 12:31a
activeMay 27, '13 at 12:31a

1 user in discussion

Marc R: 1 post



site design / logo © 2022 Grokbase