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


1 answer


This looks like a bug in django-tagging. The patch has been written, but it hasn't been tied to the trunk yet. Find the patch here:



http://code.google.com/p/django-tagging/issues/detail?id=44

+1


source







All Articles