.
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ class Long(models.Model):
|
||||
|
||||
return len([ans for ans in answers if not ans.is_marked()])
|
||||
|
||||
def get_unmarked_answers(self, exam_pk=None):
|
||||
def get_unmarked_answers(self, exam_pk=None, marker=None):
|
||||
if exam_pk is None:
|
||||
answers = self.cid_user_answers.all()
|
||||
else:
|
||||
|
||||
+1
-1
@@ -671,7 +671,7 @@ def mark_answer(request, exam_id, question_number, cid):
|
||||
previous_cid = cid_list[cid_list.index(cid)-1]
|
||||
|
||||
try:
|
||||
unmarked = question.get_unmarked_answers()
|
||||
unmarked = question.get_unmarked_answers(exam_pk=exam.id, marker=request.user)
|
||||
next_unmarked_id = unmarked[0].cid
|
||||
if next_unmarked_id == cid:
|
||||
next_unmarked_id = unmarked[1].cid
|
||||
|
||||
Reference in New Issue
Block a user