Re: Filter on multiple fields and/or multiple values...

2008-10-29 Thread Ronny Haryanto
On Thu, Oct 30, 2008 at 8:31 AM, megrez80 <[EMAIL PROTECTED]> wrote: > I want to do something like the following: > > my_query_set = my_table.objects.filter(field1 = some_val and > field2 = another_val) > > or > my_query_set = my_model.objects.filter(field1 = some_val or > fiel

Filter on multiple fields and/or multiple values...

2008-10-29 Thread megrez80
Hello, I want to do something like the following: my_query_set = my_table.objects.filter(field1 = some_val and field2 = another_val) or my_query_set = my_model.objects.filter(field1 = some_val or field1 = another_val) I couldn't find anything in the docs that describes ho