1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-22 01:51:05 +00:00

fix questions sorting

This commit is contained in:
Franzi 2022-11-07 06:40:35 +01:00
parent 1f0f928795
commit f41784175f
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
# upcoming
* fix a bug where questions could not be sorted
# 1.0.2 # 1.0.2
* fix compatibility issue with pretalx 2.3.1 * fix compatibility issue with pretalx 2.3.1

View file

@ -180,7 +180,7 @@ class PDFInfoPage(Flowable):
style=self.style["Heading"], 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: if answer.question.id not in self._questions:
continue continue
self._question_text( self._question_text(