Q(work__category__slug_en = 'illustration') |
Q(work__category__slug_en = 'sketch') |
Q(work__category__slug_en = 'storyboard'))
I get also the tags that do not belong to drawings ? Am i doing smt wrong ?
from django.contrib.contenttypes.models import ContentType
contentType = ContentType.objects.get_for_model(Work)
drawingTags =Tag.objects.filter(taggit_taggeditem_items__content_type=contentType,
work__in = drawings ).distinct()