On Wed, Oct 20, 2010 at 7:59 AM, Ed <edmund.rog...@gmail.com> wrote:
> what is the purpose of ifchanged?

since the images are sorted by film, if you just show the film for
every image it would be repeated.  with {% ifchanged %} it's only
shown before all the images for this film, so the result is like this:

film A
image a.1
image a.2
film B
image b.1
image b.2
image b.3
film C
....

without {% ifchanged %} you would get:
film A
image a.1
film A
image a.2
film B
image b.1
film B
image b.2
film B
image b.3
film C
.......


-- 
Javier

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to