lost track of changes...

This commit is contained in:
Ross
2023-01-09 09:52:09 +00:00
parent 9fc457c8a5
commit af52658e44
28 changed files with 469 additions and 118 deletions
+3
View File
@@ -31,6 +31,7 @@ from anatomy.models import Modality
from generic.models import (
CidUser,
CidUserGroup,
ExamUserStatus,
Examination,
Condition,
Sign,
@@ -627,6 +628,8 @@ class Exam(ExamBase):
related_name="longs_user_user_groups",
)
exam_user_status = GenericRelation(ExamUserStatus)
def get_exam_question_json(self, question_id):
q = get_object_or_404(Long, pk=question_id)
+1 -1
View File
@@ -6,6 +6,6 @@
Exams: {{exam.name}}->
<a href="{% url 'longs:exam_overview' pk=exam.pk %}">Overview</a> /
<a href="{% url 'longs:mark_overview' pk=exam.pk %}">Mark</a> /
<a href="{% url 'longs:exam_scores_cid' pk=exam.pk %}">Scores</a> /
<a href="{% url 'longs:exam_scores_all' pk=exam.pk %}">Scores</a> /
<a href="{% url 'longs:exam_cids' exam_id=exam.pk %}">Candidates</a> /
{% endblock %}
+1 -1
View File
@@ -88,7 +88,7 @@ urlpatterns = [
views.refresh_exam_question_json,
name="refresh_exam_question_json",
),
path("exam/<int:pk>/scores", views.exam_scores_cid, name="exam_scores_cid"),
path("exam/<int:pk>/scores", views.exam_scores_all, name="exam_scores_all"),
path(
"exam/<int:pk>/scores/<int:cid>/<str:passcode>/",
views.exam_scores_cid_user,
+1 -1
View File
@@ -862,7 +862,7 @@ def mark_question_overview(request, exam_id, sk):
@login_required
@user_is_long_marker
def exam_scores_cid(request, pk):
def exam_scores_all(request, pk):
exam = get_object_or_404(Exam, pk=pk)
questions = exam.exam_questions.all()