I want to write a query which will have an annotation of expired based on a comparison of a date in the model and the date/time of now and receive a boolean value depending on the outcome. I can't find how this is done.
I have tried the below so far:
.annotate(expired=F( F('date_updated') > datetime_now))
Can someone let me know the way to achive this?