This commit is contained in:
Ross
2021-12-07 17:01:39 +00:00
parent aef0bcb46d
commit 6337ac179f
+4 -4
View File
@@ -309,11 +309,11 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False):
if not exam.exam_mode:
raise Http404("Packet not in exam mode")
mark_url = "rapids:mark"
mark_url = "anatomy:mark"
if review:
mark_url = "rapids:mark_review"
mark_url = "anatomy:mark_review"
elif not unmarked_exam_answers_only:
mark_url = "rapids:mark_all"
mark_url = "anatomy:mark_all"
questions = exam.exam_questions.all()
@@ -1017,7 +1017,7 @@ class ExamViewSet(RevisionMixin, viewsets.ModelViewSet):
This view should return a list exams available to a user.
"""
user = self.request.user
if user.groups.filter(name="rapid_checker").exists():
if user.groups.filter(name="anatomy_checker").exists():
return Exam.objects.all()
return Exam.objects.filter(author__id=user.id)