Hi all I have a patch to the regroup tag which allows --
Regroup into any number of groups, of set size --
{% regroup list every 4 as grouped %}
Regroup into set number of groups, at any size --
{% regroup list into 4 as grouped %}
I've found this indispensable in rendering unordered lists where the
li list items needed to be spread between multiple ul elements. Could
also be useful for tables and other html, even calendars.
I've ran into it several times - another guy I know ran into it on his
very first day with Django! And since it only adds a few lines to the
codebase and is very easy to explain it's funcionality......
If anyone is interested I will submit a patch. It's return context is
identical to the existing regroup.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---