answer_summary: allow summary of 0 answers
parent
425ccca908
commit
8650bf742c
|
@ -521,7 +521,7 @@ def answer_summary(questionnaire, answers=None):
|
||||||
freeform options are case-insensitive sorted
|
freeform options are case-insensitive sorted
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not answers:
|
if answers is None:
|
||||||
answers = Answer.objects.all()
|
answers = Answer.objects.all()
|
||||||
answers = answers.filter(question__questionset__questionnaire=questionnaire)
|
answers = answers.filter(question__questionset__questionnaire=questionnaire)
|
||||||
questions = Question.objects.filter(
|
questions = Question.objects.filter(
|
||||||
|
|
Loading…
Reference in New Issue