djangosnippets.org: Latest snippets tagged with 'every-other'https://djangosnippets.org/tags/every-other/2010-01-23T09:31:38.232816-06:00Anticollate? Disinterleave?
2010-01-23T09:31:38.232816-06:00lemonlaughttps://djangosnippets.org/snippets/1885/<p>This is yet another partitioning filter, but I wanted to be able to distribute my objects across two columns, and have them read from left to right, top to bottom. So if n = 2 this would return every other object from a queryset.</p>
<p>With gratitude to the author of …</p>
Freely redistributable