diff --git a/atlas/views.py b/atlas/views.py index 52f48ee0..43fd3fe1 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1379,7 +1379,13 @@ def delete_cid_answers(request, exam_id, 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 @user_is_collection_author_or_atlas_editor