2011-11-09 3 views

답변

4
from django.db.models import Count 
Type.objects.annotate(component_count=Count('component')).exclude(component_count=0)