diff --git a/common/lib/capa/capa/templates/choicegroup.html b/common/lib/capa/capa/templates/choicegroup.html index 8816933075..e4a3f1dc39 100644 --- a/common/lib/capa/capa/templates/choicegroup.html +++ b/common/lib/capa/capa/templates/choicegroup.html @@ -21,11 +21,15 @@ <% if status == 'correct': correctness = 'correct' - if status == 'incorrect': + elif status == 'incorrect': correctness = 'incorrect' + else: + correctness = None %> + % if correctness: class="choicegroup_${correctness}" % endif + % endif >