def get_poll_result(self):
    #~ yield E.h1(self.title)
    for cs in ChoiceSet.objects.all():
        questions = self.questions.filter(choiceset=cs)
        if questions.count() > 0:
            yield E.h2(str(cs))
            for question in questions:
                yield E.p(question.text)
dataset/ETHPy150Open lsaffre/lino/lino/modlib/polls/models.py/get_poll_result/original