Getting tags for a specific set of requests using django-tagging
I am using django-tagging and am trying to get a list of tags for a specific set of requests. Here's what I have:
tag = Tag.objects.get(name='tag_name')
queryset = TaggedItem.objects.get_by_model(Article, tag)
tags = Tag.objects.usage_for_queryset(queryset, counts=True)
"queryset" accordingly returns multiple articles tagged with "tag_name", but when I try to retrieve all tags for this queryset, "tags" return a complete list of all tags for that model.
Has anyone else encountered this before or is it a bug in django-tagging?
+2
source to share