[Answer]-How to get field of filtered value in template?

1👍

There is no direct way, try this:

{%for data in trees %}

    {% if forloop.counter == subtree_num %}
        {{ data.task_count }}

    {% endif %}
{% endfor %}
👤Rohan

Leave a comment