{% for d in fields %} {% if forloop.counter <= 4 %} {{ formfield d.name }} {% if show_solutions %} {% if d.is_correct %}

Correct.

{% else %}

{{ d.explanation }}

{% endif %} {% endif %} {% endif %} {% endfor %}