This commit is contained in:
Ross
2021-03-12 10:49:57 +00:00
parent 65a14e58c6
commit af88f88d7f
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -181,6 +181,8 @@ class ExamViews(View, LoginRequiredMixin):
exam.recreate_json = True
exam.save()
exam.get_exam_json()
return redirect("{}:exam_overview".format(self.app_name), pk=pk)
@method_decorator(login_required)
+1
View File
@@ -170,6 +170,7 @@ class Long(models.Model):
return [ans for ans in answers if not ans.is_marked()]
def get_json(self, question_id):
# self == q?
q = get_object_or_404(Long, pk=question_id)
#exam_order.append(q.id)
+2
View File
@@ -1016,4 +1016,6 @@ def question_json_recreate(request, pk):
question.recreate_json = True
question.save()
question.get_question_json(pk)
return redirect("longs:question_detail", pk=pk)