Removing data in a Django Template Forloop
I have a for loop in a Django Project as following:
{% for i in active_session.log.values %}
{% if i.log_order == b.order and i.log_exercise == e.name %}
<button type="submit" id="submitlog" class="......">
<i class="fa-solid fa-check"></i>
</button>
{% else %}
<button type="submit" id="submitlog" class="......">
<i class="fa-solid fa-x"></i>
</button>
{% endif %}
{% endfor %}
This is the current outcome:
My question: How can I get rid of the X in the and only keep the check buttons
I have tried the following but did not work:
{% if active_session.log.log_order == b.order and active_session.log.log_exercise == e.name %}