This commit is contained in:
Ross
2021-09-08 14:19:14 +01:00
parent 88fb982dc9
commit a5ac0d3734
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
<tr> <tr>
<th>Candidate</th> <th>Candidate</th>
{% for cid in cids %} {% for cid in cids %}
<th><a href="{% url 'longs:exam_scores_cid_user' exam.pk cid %}">{{cid}}</a></th> <th><a href="{% url 'rapids:exam_scores_cid_user' exam.pk cid %}">{{cid}}</a></th>
{% endfor %} {% endfor %}
</tr> </tr>
+1 -1
View File
@@ -56,7 +56,7 @@ urlpatterns = [
), ),
path("exam/<int:pk>/scores", cache_page(60 * 1)(views.exam_scores_cid), name="exam_scores_cid"), path("exam/<int:pk>/scores", cache_page(60 * 1)(views.exam_scores_cid), name="exam_scores_cid"),
path( path(
"exam/<int:pk>/scores/<int:sk>/", "exam/<int:pk>/scores/<int:cid>/",
views.exam_scores_cid_user, views.exam_scores_cid_user,
name="exam_scores_cid_user", name="exam_scores_cid_user",
), ),
+2 -2
View File
@@ -907,11 +907,11 @@ def exam_scores_cid(request, pk):
) )
def exam_scores_cid_user(request, pk, sk): def exam_scores_cid_user(request, pk, cid):
exam = get_object_or_404(Exam, pk=pk) exam = get_object_or_404(Exam, pk=pk)
# TODO:Need some kind of test for cid # TODO:Need some kind of test for cid
cid = sk #cid = sk
questions = exam.exam_questions.all() questions = exam.exam_questions.all()