On Thu, 2009-03-05 at 07:13 -0800, Daniel Hepper wrote:
> Yes, this does obviously not work as expected. Sorry for the
> misinformation.
> 
> But would it work if every condition was encapsulated in a Q-object?
> 
> Book.objects.filter(Q(categories=1), Q(categories=2), Q(categories=3))

Not if you were trying to solve the original poster's question. Your
query is exactly the same as what he tried to do originally.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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