|
@@ -5,7 +5,7 @@ from django.utils import timezone
|
|
|
from django.conf import settings
|
|
|
|
|
|
from apps.foundation.models import Subject
|
|
|
-from apps.examination.exampaper.models import ExamPaper
|
|
|
+from apps.examination.exampaper.models import ExamPaper, ExamPaperDetail
|
|
|
from apps.examination.examquestion.models import ExamQuestion, ExamQuestionOption
|
|
|
|
|
|
class Exam(models.Model):
|
|
@@ -84,7 +84,7 @@ class ExamAnswerLog(models.Model):
|
|
|
STATUS_JSON = [{'id': item[0], 'value': item[1]} for item in STATUS_CHOICES]
|
|
|
|
|
|
main = models.ForeignKey(ExamLog, verbose_name=u"考试记录", on_delete=models.PROTECT)
|
|
|
- question = models.ForeignKey(ExamQuestion, verbose_name=u"试题", on_delete=models.PROTECT)
|
|
|
+ detail = models.ForeignKey(ExamPaperDetail, verbose_name=u"试题", on_delete=models.PROTECT)
|
|
|
status = models.PositiveSmallIntegerField(choices=STATUS_CHOICES, verbose_name=u'回答状态', default=NOTDONE)
|
|
|
|
|
|
class Meta:
|