On Feb 6, 9:29 pm, "Swaroop C H" <[EMAIL PROTECTED]> wrote:
> If I've understood your question correctly, you can use 'forloop.last'
> to determine if you're in the last iteration... 
> seehttp://www.djangobook.com/en/1.0/chapter04/for details.

Yes, that's what I use for the last iteration. Then I use {% ifequal
forloop.revcounter 2 %} for the second-to-last, and just end up with a
ton of ugly if and else statements that should be easier to express.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to