rohitjain-rj / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Tag.objects.usage_for_queryset does not work. #219

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
"usage_for_queryset" simply returns all tags for the given Model, not the
queryset.

For this code:

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" appropriately returns a number of articles that have been tagged
with the tag 'tag_name', but when I attempt to retrieve all of the tags for
that queryset, "tags" returns a complete list of all tags for that model.

Original issue reported on code.google.com by intellin...@gmail.com on 2 Oct 2009 at 5:56

GoogleCodeExporter commented 9 years ago
Nevermind, this appears to be fixed, but the patch has not yet been applied:

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

Original comment by intellin...@gmail.com on 2 Oct 2009 at 6:05