lost track of changes...
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user