Monday, July 4, 2011

Re: Django {% regroup %} produces duplicate groups

On Mon, Jul 4, 2011 at 13:32, bruno desthuilliers
<bruno.desthuilliers@gmail.com> wrote:
> On Jul 4, 12:49 am, Federico Maggi <feder...@maggi.cc> 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

thanks Bruno. It solved the issue.

-F

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate