Could {% regroup %} have an unwanted side effect on the list is to
grouping on, when the list is a queryset?

I use the template below. When:
    book_list = list(query)
the template works fine.

When:
    book_list = query
the template chokes on {% some_custom_tag project_list %}. The
debugger shows that project_list is now a list of list, and no longer
a straight list.

The template is as follows:
    {% regroup book_list by country_name as grouped %}
    {% for group in grouped %}
        {% for book in group.list %}
           ...
        {% endfor %}
    {% endfor %}
    {% some_custom_tag project_list %}  <--- BREAKS when project_list
is a query_set

Am I doing something wrong?

JJ.


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to