Re: Query by date + offset

2009-05-14 Thread TiNo
On Wed, May 13, 2009 at 5:00 PM, eric.frederich wrote: > > I have a model called Offering which has a start date and a duration > in days. > I want to do a query and get instances where the end date (not > modeled) is in the past. > I know that I can add a non-editable field end-date that is compu

Query by date + offset

2009-05-13 Thread eric.frederich
I have a model called Offering which has a start date and a duration in days. I want to do a query and get instances where the end date (not modeled) is in the past. I know that I can add a non-editable field end-date that is computed in the save method, but this seems denormalized. I'm curious to