Re: query comparing two attributes of an object

2007-10-08 Thread Dan Goldner
Thanks!! On Oct 8, 2:19 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-08 at 12:14 -0700, Dan Goldner wrote: > > Hello, > > Is it possible to use filter() to query objects based on comparisons > > among attributes of the same object? For example, if my model Task has > > two

Re: query comparing two attributes of an object

2007-10-08 Thread Malcolm Tredinnick
On Mon, 2007-10-08 at 12:14 -0700, Dan Goldner wrote: > Hello, > Is it possible to use filter() to query objects based on comparisons > among attributes of the same object? For example, if my model Task has > two attributes start_year and end_year and I want to select all tasks > where start_year

query comparing two attributes of an object

2007-10-08 Thread Dan Goldner
Hello, Is it possible to use filter() to query objects based on comparisons among attributes of the same object? For example, if my model Task has two attributes start_year and end_year and I want to select all tasks where start_year was somehow set later than end_year, I would try something like