Re: remove items from queryset for nested regrouping

2011-04-15 Thread Mo Mughrabi
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

remove items from queryset for nested regrouping

2011-04-15 Thread Mo Mughrabi
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

Re: Regrouping forms in formsets

2010-09-04 Thread Felix H.
{% 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

Regrouping forms in formsets

2010-09-03 Thread Felix H.
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

regrouping

2008-08-29 Thread sholombc
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