.
This commit is contained in:
+7
-1
@@ -1379,7 +1379,13 @@ def delete_cid_answers(request, exam_id, cid):
|
|||||||
|
|
||||||
cid_user_answers = CidReportAnswer.objects.filter(question__in=case_details, cid=cid)
|
cid_user_answers = CidReportAnswer.objects.filter(question__in=case_details, cid=cid)
|
||||||
|
|
||||||
return JsonResponse(cid_user_answers, safe=False)
|
|
||||||
|
temp = {}
|
||||||
|
for ans in cid_user_answers:
|
||||||
|
temp[ans.pk] = (ans.question.pk, ans.score, ans.cid, ans.answer)
|
||||||
|
|
||||||
|
|
||||||
|
return JsonResponse(temp)
|
||||||
|
|
||||||
# TODO: this needs a major cleanup
|
# TODO: this needs a major cleanup
|
||||||
@user_is_collection_author_or_atlas_editor
|
@user_is_collection_author_or_atlas_editor
|
||||||
|
|||||||
Reference in New Issue
Block a user