Re: Date comparison as a filter

2020-06-08 Thread Rupesh Dahal
https://docs.djangoproject.com/en/3.0/topics/db/queries/ check this documentation. On Monday, June 8, 2020 at 8:03:46 AM UTC+5:45, Clive Bruton wrote: > > I would like to add a date comparison filter to a lookup, to find > items in a database table that have not yet expired

Date comparison as a filter

2020-06-07 Thread Clive Bruton
I would like to add a date comparison filter to a lookup, to find items in a database table that have not yet expired. I tried: .filter(expires>=datetime.today()) \ But this does not appear to have any effect. "expires" is a column in the table of datetime type, th