Dear Djangoites,

I ran into problems trying to chain multiple filters on a QuerySet
with models in a many-to-many relationship. Based on the word from
irc, and from perusal of the mailing list, it seems that this is a
known issue. But the last ML post on it (that I could find) dates back
to 2006-08. Has any progress been made, and is there a workaround? I'm
on the latest svn.

For reference, an illustration of the problem:

In [54]:cs.filter(default_recipe__ingredients__ingredient__id=1)
Out[54]:[<Cocktail: Bloody Mary>, <Cocktail: Screwdriver>]

In [55]:cs.filter(default_recipe__ingredients__ingredient__id=3)
Out[55]:[<Cocktail: Bloody Mary>]

In
[56]:cs.filter(default_recipe__ingredients__ingredient__id=3).filter(default_recipe__ingredients__ingredient__id=1)
Out[56]:[]

Thanks,
B


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to