#33202: Add a "grouper" template filter
-------------------------------------------+------------------------
Reporter: horpto | Owner: nobody
Type: New feature | Status: new
Component: Template system | Version:
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------------+------------------------
A simple filter tag that will get an iterableof elements and optional
number n. It will regroup an iterable to iterable of lists with length not
more than n elements. By default n is 2.
This filter can be used to render lists to rows.
`[3,4,5,6,7,8,9]| grouper -> [[3, 4], [5, 6], [7, 8], [9]]`
--
Ticket URL: <https://code.djangoproject.com/ticket/33202>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.d523ef045d7da69c828939afc13ab151%40djangoproject.com.