From 03d57d17b07b442c5ec317c79f8c214ac5764b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Tue, 19 Feb 2013 23:43:20 +0100 Subject: [PATCH] Fix state attributes in motion pdf. --- openslides/motion/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/motion/pdf.py b/openslides/motion/pdf.py index 71fd25b82..686e8fd03 100644 --- a/openslides/motion/pdf.py +++ b/openslides/motion/pdf.py @@ -50,7 +50,7 @@ def motion_to_pdf(pdf, motion): motion_data.append([cell1a, cell1b]) # TODO: choose this in workflow - if motion.state.edit_as_submitter: + if motion.state.allow_submitter_edit: # Cell for the signature cell2a = [] cell2b = [] @@ -71,7 +71,7 @@ def motion_to_pdf(pdf, motion): for supporter in supporters: cell3b.append(Paragraph(".  %s" % unicode(supporter), stylesheet['Signaturefield'])) - if motion.state.support: + if motion.state.allow_support: for count in range(config['motion_min_supporters'] - supporters.count()): cell3b.append(Paragraph(". " + 42 * "_", stylesheet['Signaturefield']))