On 12/03/07, Boris Smus <[EMAIL PROTECTED]> wrote: >[56]:cs.filter(default_recipe__ingredients__ingredient__id=3).filter(default_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 -~----------~----~----~----~------~----~------~--~---