Boris Smus wrote:
> On Mar 12, 6:56 am, Tim Chase <[EMAIL PROTECTED]>
> wrote:>
>> cs.filter(
>>         Q(default_recipe__ingredients__ingredient__id=3) |
>>         Q(default_recipe__ingredients__ingredient__id=1)
>>         )
> 
> Just to clarify, I was trying to get AND functionality, as Konstantin
> suggested. I also tried with Q models, using the same expression as
> Tim gave, except s/|/,/. This gave the same erroneous result.
> 
> Thank you Tim for your custom SQL suggestion, I'll try to do something
> to that effect as a temporary solution. Something is still broken
> inside Django's m2m QuerySet filtering, however. Does anyone know the
> status of that?
> 
> 
> > 

--~--~---------~--~----~------------~-------~--~----~
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