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
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
2 matches
Mail list logo