S
Size: a a a
S
DT
D
category = Category.objects.annotate(stores_count=Count( ??? ))
DT
category = Category.objects.annotate(stores_count=Count( ??? ))
D
D
DT
DT
DT
DT
DT
D
D
D
category = models.ForeignKey(Subcategory, on_delete=models.CASCADE, related_name='category_store’)
D
queryset = Category.objects.all().annotate(cnt=Count('category_store’))
DT
D
D
DT
D