dlamotte / django-tagging

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

Add support for conjunctive normal form or Q objects #251

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
get_intersection_by_model and get_union_by_model are ok, but as I get deeper 
into things, the need for a query like TaggedItem.objects.get_by_model(MyModel, 
(foo OR bar) AND (baz OR biz) AND NOT boo) become apparent. In django, this is 
done with Q objects. with django-tagging, I am forced to make multiple queries 
and turn then into sets  in memory to do the calculation, or I do the query in 
straight SQL.

obviously I could be missing some trick in django or django-tagging, but it 
doesn't look like these things are anywhere in the documentation or source code.

Original issue reported on code.google.com by Tesserac...@gmail.com on 9 Sep 2010 at 5:19