answer_summary: allow summary of 0 answers

EmailTemplateFixes
Ian Ward 2010-04-19 11:57:57 -04:00
parent 425ccca908
commit 8650bf742c
1 changed files with 1 additions and 1 deletions

View File

@ -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(