Hi, I found myself needing to reference the previous or next element
of a list within a for loop of a template.
I think it would be pretty easy to implement the following extra
members to the forloop context variable:

 + forloop.next_element
 + forloop.next_counter
 + forloop.next_counter0
 + forloop.previous_element
 + forloop.previous_counter
 + forloop.previous_counter0

Am I missing some very simple alternative way of doing this?

If I write a patch to include this behavior in the "for" tag, would it
be likely to be included?

Cheers,
Santiago

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to