Get count on several filtered subqueries in template
问题 I recently asked for how to get count on filetered subqueries in a template and got an answer here: Get count on filtered subqueries in template Now I realised that I need this extended as following (which I think is a lot mroe than my first question, therefor creating a new one here): Show articles that doesn't match the tag, but then with 0 as count. Extend to allow counting on different tags. With the following model: class Category(models.Model): ... class SubCategory(models.Model):