按题型排序
This commit is contained in:
parent
22f2538245
commit
4d03740bc9
|
@ -6005,7 +6005,7 @@ def apiexamtest(req):
|
|||
elif a == 'detailtm':
|
||||
id = req.GET.get('id')
|
||||
test = ExamTest.objects.get(id=id)
|
||||
objs = ExamPaperDetail.objects.filter(exampaper=test.exampaper).values(
|
||||
objs = ExamPaperDetail.objects.filter(exampaper=test.exampaper).order_by('question_type').values(
|
||||
'id', 'question__id', 'score', 'question__title', 'question__type', 'question__answer', 'question__right', 'question__resolution')
|
||||
duration = test.duration
|
||||
data = {'duration': duration, 'tms': list(objs)}
|
||||
|
|
Loading…
Reference in New Issue