From d843fc1545328d22ec43bf7b5446a9054f4cb368 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 30 Jun 2020 23:04:17 +0200 Subject: [PATCH] Fix colors in graph of boolean questions --- src/pretix/control/views/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/views/item.py b/src/pretix/control/views/item.py index 8692f6acec..5430713b51 100644 --- a/src/pretix/control/views/item.py +++ b/src/pretix/control/views/item.py @@ -556,8 +556,8 @@ class QuestionView(EventPermissionRequiredMixin, QuestionMixin, ChartContainingV if self.object.type == Question.TYPE_BOOLEAN: for a in qs: a['alink'] = a['answer'] - a['answer'] = gettext('Yes') if a['answer'] == 'True' else gettext('No') a['answer_bool'] = a['answer'] == 'True' + a['answer'] = gettext('Yes') if a['answer'] == 'True' else gettext('No') elif self.object.type == Question.TYPE_COUNTRYCODE: for a in qs: a['alink'] = a['answer']