diff --git a/CHANGELOG.md b/CHANGELOG.md index 22502f2..a4383a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# upcoming + +* fix a bug where questions could not be sorted + # 1.0.2 * fix compatibility issue with pretalx 2.3.1 diff --git a/pretalx_broadcast_tools/exporter.py b/pretalx_broadcast_tools/exporter.py index 03bacb1..e4ead74 100644 --- a/pretalx_broadcast_tools/exporter.py +++ b/pretalx_broadcast_tools/exporter.py @@ -180,7 +180,7 @@ class PDFInfoPage(Flowable): style=self.style["Heading"], ) ) - for answer in sorted(self.talk.submission.answers.all()): + for answer in self.talk.submission.answers.order_by("question"): if answer.question.id not in self._questions: continue self._question_text(