{% extends "bee_django_course/base.html" %} {% load bee_django_course_filter %} {% block content %}
问题 | {% if not user %}课件 | {% endif %}正确答案 | {% if user %}用户答案 | {% else %}{% endif %} | |
---|---|---|---|---|---|
{{ forloop.counter }} | {{ question.question }} | {% if not user %}{{ question.section.name }} | {% endif %}{% if question.get_correct_options|length == 0 %} 无正确答案 {% endif %} {% for option in question.get_correct_options %} {{ option.option }} {% if not forloop.last %},{% endif %} {% endfor %} | {% if user %}{% get_user_question_answer question user as records %} {% for record in records %} {{ record.answer.option }} {% if not forloop.last %},{% endif %} {% endfor %} | {% else %}答题情况 | {% endif %}