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)) -- Daniel On Mar 5, 4:14 am, Malcolm Tredinnick <[email protected]> wrote: > On Wed, 2009-03-04 at 15:06 -0800, Daniel Hepper wrote: > > You can try this query: > > > Book.objects.filter(categories=1,categories=2,categories=3) > > > Hope that helps > > It won't. A filter() method is a normal Python function or method call. > You can only specify each keyword argument exactly once. Because of the > way Django implements queryset methods, only the last keyword argument > will be used (no error will be raised), but it's still not what is > expected. > > 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 -~----------~----~----~----~------~----~------~--~---

