From 2a91f8caf475381a0a544791e3634a696db0ab2f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 8 Dec 2023 11:04:50 +0100 Subject: [PATCH] Fix crash when omitting pagebreaks between badges --- postgresqleu/confreg/reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresqleu/confreg/reports.py b/postgresqleu/confreg/reports.py index 31acf40b6..6687ef192 100644 --- a/postgresqleu/confreg/reports.py +++ b/postgresqleu/confreg/reports.py @@ -523,7 +523,7 @@ def build_attendee_report(self, request, data): orientation = data['orientation'] pagesize = data.get('pagesize', 'A4') borders = data.get('border', None) == "on" - pagebreaks = data['pagebreaks'] + pagebreaks = data.get('pagebreaks', None) == 'on' extracols = [_f for _f in [x.strip() for x in data['additionalcols'].split(',')] if _f] ofields = [self.fieldmap[f] for f in (data['orderby1'], data['orderby2'])]