Ok its solved now, I updated my nested regroup with the following
{% regroup dict by col_mapper as column_gr %}
{% for column in column_gr %}
{{ column.grouper }}
{% with column.list as groupr %}
{% regroup groupr by main_tit
Hi,
I've been working on a project that takes into consideration performance as
the top priority therefore am trying to use single to queries at each page
to collect all the needed information.
Any who, I got to a point where I have one query set that need to be
regrouped based on column (left, r
{% regroup formset.forms by instance.attribute as forms_by_attribute
%}
{# ... looping over the regrouped list, as usual ... #}
With this, the regrouping of forms works wonderfully.
I hope this helps someone, someday :-)
-Felix
--
You received this message because you are subscribed to the Goo
ion is this: Is using regroup as shown above a viable solution for the
given problem at all? If so, how would you access the objects attributes? If
not, is there an clean alternative? What would you suggest? (I have thought
about multiple formsets, for example, or regrouping the objects themselves
Sub Catagory
Product1
Product2
Sub Catagory
Product1
Product2
Catagory
Sub Catagory
Product1
Product2
Sub Catagory
Product1
Product2
i tried regrouping with the {% regroup%} tag but that only lets me do
it to the Catagory
5 matches
Mail list logo