Re: very interesting query... i need some help

2009-08-10 Thread many
one thing i like about django and python in general is that i can read to the source code very easy and come up with some sort of a solution. the reason i want to keep it a queryset is that i want to perform a filter even further. i have come up with a rather simple solution but ineficient. the

Re: very interesting query... i need some help

2009-08-07 Thread Malcolm Tredinnick
On Fri, 2009-08-07 at 06:15 -0700, talpay...@gmail.com wrote: > i have come up with one of the most interesting query i have ever > seen. > > I want to do this : > > products = products.filter(productdetail__detail_value__gte = > first_value) > products =

very interesting query... i need some help

2009-08-07 Thread talpay...@gmail.com
i have come up with one of the most interesting query i have ever seen. I want to do this : products = products.filter(productdetail__detail_value__gte = first_value) products = products.filter(productdetail__detail_value__lte = second_value) where first_value and second_value are integers and