Django dynamic template filter tag

is it possible to make a dynamic tag inside a if tag my view is this

{% for Ansicht in Ansicht.lehrertabelle_set.all  %} 
    <th scope="row"></th>
    {% if Ansicht.Prognose_FK.{{DYNAMIC}} %}
    {% else %}
    {% endif %}
{% endfor %}

I want filter this by date. Like an input for date and it would show my ' <td> like I have it in my template

Back to Top