{% for item in question_results %}
{% with attempt=item.attempt question=item.question %}
{% if attempt.is_correct %}✓{% else %}✕{% endif %}
Question {{ forloop.counter }}
{{ question.text|richtext }}
{% if attempt.is_correct %}
Your answer: {{ attempt.selected_choice.text|exam_marks }}
{% else %}
Your answer: {{ attempt.selected_choice.text|exam_marks }}Correct:
{% for c in question.choices.all %}{% if c.is_correct %}{{ c.text|exam_marks }}{% endif %}{% endfor %}
{% endif %}