From 8ae6663631b0a013f88ae69e6553cdce8e7c6837 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 7 Nov 2013 11:34:38 +0100 Subject: [PATCH] Inform about zero selected answers in closed part of a question --- wtem/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wtem/admin.py b/wtem/admin.py index 99877fd..a23874e 100644 --- a/wtem/admin.py +++ b/wtem/admin.py @@ -45,6 +45,8 @@ def get_open_answer(answers, exercise): for selected in answer['closed_part']: option = get_option(exercise['options'], selected) toret += '%s: %s\n' % (selected, option['text']) + else: + toret += u'\n' toret += u'\nCzesc otwarta (%s):\n\n' % ' '.join(exercise['open_part']) toret += answer['open_part'] -- 2.20.1