acangiani / django-tagging

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

get_by_model of TaggedItemManager returns different type according to tag input #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

 The get_by_model method of TaggedItemManager creates and returns a
queryset if existing tags are given while it returns a list if tag_count == 0.
I would suggest returning an empty queryset also in this last case to keep
a uniform interface.
In my personal case, I had to "and" (&) the queryset returned by the method
with another queryset and the operation was failing (of course) when the
get_by_model method returned a list rather than a queryset.

Original issue reported on code.google.com by fd.calab...@gmail.com on 29 Oct 2007 at 7:57

GoogleCodeExporter commented 9 years ago
Fixed in revision 108.

Original comment by jonathan.buchanan on 29 Dec 2007 at 3:04