another ifchanged question, triggers on first call, not what I want

2013-05-26 Thread Marc R
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 %} {% endifchanged %} ...print other data... {% endfor %} The very

Re: include and ifchanged inconsistent behavior (variables vs. strings)

2010-06-26 Thread Jerry Stratton
Sorry, forgot to mention, I'm using Django 1.2.1. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googleg

include and ifchanged inconsistent behavior (variables vs. strings)

2010-06-26 Thread Jerry Stratton
I often loop through lists, but for the guts of the list use "include" because the same code is needed in multiple places. Inside the included files, "ifchanged" works, but only as long as the include is done by way of a string. I recently changed a template that was a co

ifchanged

2007-04-03 Thread Rob Slotboom
Within a template I want to use the folowing construction. {% for item in object_list reversed %} {% ifchanged %} {% if not forloop.first %}{% endif %} {{ item.pub_date| date:"F" }} {% endifchanged %} {{

Re: else tag for ifchanged

2006-06-28 Thread Adrian Holovaty
ew blog post i > just need a simple separator. Now, at first i would imagine this be > the code: > > {% ifchanged %} > {{ > post.created|date:"Y.m.d" }} > {%else %} > > {% endifchanged %} > > but else is not a valid block tag. any insight from devs or

Re: else tag for ifchanged

2006-06-28 Thread Waylan Limberg
a new blog post i > just need a simple separator. Now, at first i would imagine this be > the code: > try something like this: {% ifchanged %} {{ post.created|date:"Y.m.d" }} {% endifchanged %} {% ifnotchanged %} {% endifnotchanged %} > > but else is not a valid block

else tag for ifchanged

2006-06-28 Thread [EMAIL PROTECTED]
ine this be the code: {% ifchanged %} {{ post.created|date:"Y.m.d" }} {%else %} {% endifchanged %} but else is not a valid block tag. any insight from devs or other users. i am using the django.views.generic.date_based.archive_index generic view --~--~-~--~~~