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
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
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
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 %}
{{
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
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
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
--~--~-~--~~~
7 matches
Mail list logo