I have a simple model with news and categories:
class Category(models.Model): name = models.CharField() slug = models.SlugField() class News(models.
Very simple:
>>> for category in Category.objects.all(): ... print category.name, category.news_set.count()