ID результата: {{ result.id }}
Пользователь: {{ result.user }}
Тест ID: {{ result.test_id }}
Баллы: {{ result.score }}
Дата завершения: {{ result.date_completed.strftime('%Y-%m-%d %H:%M:%S') }}
ID Вопроса | Текст вопроса | Ответ пользователя | Правильный ответ | Результат |
---|---|---|---|---|
{{ detail.question.id }} | {{ detail.question.question_text }} | {% if detail.user_answer %} {{ detail.user_answer.answer_text }} {% else %} Нет ответа {% endif %} | {% if detail.question.correct_answer %} {{ detail.question.correct_answer.answer_text }} {% else %} Не задан {% endif %} | {% if detail.is_correct %} Correct {% else %} Incorrect {% endif %} |