Re: Django {% regroup %} produces duplicate groups

2011-07-04 Thread Federico Maggi
On Mon, Jul 4, 2011 at 13:32, bruno desthuilliers wrote: > On Jul 4, 12:49 am, Federico Maggi wrote: >> {% block content %} >>   {% regroup object_list|dictsort:"topic" by topic as topic_list %} >> > > Remove the dictsort, it's for list of dicts, not model querysets > > https://docs.djangoproject

Re: Django {% regroup %} produces duplicate groups

2011-07-04 Thread bruno desthuilliers
On Jul 4, 12:49 am, Federico Maggi wrote: > {% block content %} >   {% regroup object_list|dictsort:"topic" by topic as topic_list %} > Remove the dictsort, it's for list of dicts, not model querysets https://docs.djangoproject.com/en/1.3/ref/templates/builtins/#dictsort -- You received this m

Django {% regroup %} produces duplicate groups

2011-07-03 Thread Federico Maggi
ely, this code yields to duplicate gorups and, sometimes, the groups change at each refresh (or, at least, they change when I reboot the server). Any idea of why is this happening? The entire code, besides templates', resides here: https://bitbucket.org/phretor/django-academic/src/