How do I make nested regroups in Django?
- by Marcio Cruz
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?