[Answer]-Django template filter keeps giving "unsupported operand type"

1👍

You can’t get delta between datetime and date object. You have to extract date from the datetime object:

delta = value.date() - date.today()

Leave a comment