How do I make nested regroups in Django?
Posted
by
Marcio Cruz
on Stack Overflow
See other posts from Stack Overflow
or by Marcio Cruz
Published on 2011-01-12T23:49:01Z
Indexed on
2011/01/12
23:54 UTC
Read the original article
Hit count: 274
django
|django-template-tags
I've got the following situation in this system: Each category of products has many subcategories, and each subcategory has many products under it. I'm trying to make a product searh, which returns a list, and in my template, I show an overview of the results, like this:
Cellphones
Dumbphones (2 results)
Smartphones (3 results)
Monitors
CRT (1 result)
LCD (3 results)
I'm my template I have only the list of products. I've tryed many combinations of nested regroups, without success. Any ideas?
© Stack Overflow or respective owner