Hi!

I just figured this one out and would like to share my solution for
posterity: Since the formset in question is a ModelFormSet (which I
forgot to mention in the above message, sorry!), the data for each
form can be accessed using "form.instance". Thus, the regroup tag
should read:

{% 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 Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to