--- a/OSSEval/analysis/templatetags/custom_tags.py
+++ b/OSSEval/analysis/templatetags/custom_tags.py
@@ -10,7 +10,10 @@
try:
answer = Answer.objects.get(question=question, instance=instance)
choice = question.choice_set.get(order=answer.value_integer)
- return "(" + str(answer.score) + ") " + choice.text
+ if choice.todo != "":
+ return "<div title=\"" + choice.todo + "\">(" + str(answer.score) + ") " + choice.text + "</div>"
+ else:
+ return "(" + str(answer.score) + ") " + choice.text
except:
return "<font color=red>not answered</font>"