.
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
from django.db.models.fields.files import ImageField
|
||||
from django.db.models.fields.related import ForeignKey
|
||||
from django.db import models
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.utils import timezone
|
||||
import tagulous
|
||||
import tagulous.models
|
||||
@@ -417,8 +418,8 @@ class Exam(ExamBase):
|
||||
default=4500,
|
||||
)
|
||||
|
||||
def get_exam_question_json(self, n):
|
||||
q = self.exam_questions.all()[n]
|
||||
def get_exam_question_json(self, question_id):
|
||||
q = get_object_or_404(Long, pk=question_id)
|
||||
|
||||
#exam_order.append(q.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user