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