From 8650bf742c41b3e44c2b9e3437d037b1cfce7900 Mon Sep 17 00:00:00 2001 From: Ian Ward Date: Mon, 19 Apr 2010 11:57:57 -0400 Subject: [PATCH] answer_summary: allow summary of 0 answers --- questionnaire/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questionnaire/views.py b/questionnaire/views.py index d382eba..664a3eb 100644 --- a/questionnaire/views.py +++ b/questionnaire/views.py @@ -521,7 +521,7 @@ def answer_summary(questionnaire, answers=None): freeform options are case-insensitive sorted """ - if not answers: + if answers is None: answers = Answer.objects.all() answers = answers.filter(question__questionset__questionnaire=questionnaire) questions = Question.objects.filter(