Hello, please allow me to disagree. the first two queries in the original post return result sets which overlap. but they combined return the empty set. this is the problem.
konstantin On Mar 12, 9:13 am, Atilla <[EMAIL PROTECTED]> wrote: > On 12/03/07, Boris Smus <[EMAIL PROTECTED]> wrote: > > >[56]:cs.filter(default_recipe__ingredients__ingredient__id=3).filter(defauĀlt_recipe__ingredients__ingredient__id=1)> > Out[56]:[] > > This would map to a Query that looks like this "... WHERE id=3 AND > id=1". that would most certainly return no results. If you're trying > to do OR, look into the DB API manual for Q objects, which are the way > to express OR statements. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---