FAQ
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+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
Discussion Overview
groupdjango-users @
categoriesdjango, python
postedMay 27, '13 at 12:31a
activeMay 27, '13 at 12:31a
posts1
users1
websitedjangoproject.com

1 user in discussion

Marc R: 1 post

People

Translate

site design / logo © 2022 Grokbase