I have a model very imaginatively called 'model
' which has a field 'datefinish
' in it; users can input a date here in the format MM/DD/YYYY. In my template I need some text displayed when said model has a datefinish
(date) that is equal to the current day.
HTML:
{% if model.datefinish == datetime.today %}
<h5>It ends today</h5>
{% else %}
<h5>It does not end today</h5>
{% endif %}
How might one achieve this? I'm using Django 1.10...thanks!