0

In my models.py I have a end_date variable. In my template, I'd like to show certain stuff only if that end_date is passed. Is there a way to do that in the template?

{% if end_date <= now %}
...
{% else %}
...
{% endif %}

That doesn't work... Any pointers? Thanks!

Thomas
  • 1
  • 5

0 Answers0