From 1b108603ea9e83eb2d19c2054bfa04cf3270824e Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sat, 30 Jun 2012 11:57:07 +0200 Subject: [PATCH] #239 don't show supporters in the application PDF, if they are disabled --- openslides/application/views.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/openslides/application/views.py b/openslides/application/views.py index fca8881ca..97db02466 100644 --- a/openslides/application/views.py +++ b/openslides/application/views.py @@ -752,14 +752,17 @@ class ApplicationPDF(PDFView): # supporters cell2a = [] - cell2a.append(Paragraph("%s:" % _("Supporters"), stylesheet['Heading4'])) cell2b = [] - for s in application.supporter.all(): - cell2b.append(Paragraph(".  %s" % unicode(s.profile), stylesheet['Signaturefield'])) - if application.status == "pub": - for x in range(0,application.missing_supporters): - cell2b.append(Paragraph(".  __________________________________________",stylesheet['Signaturefield'])) - cell2b.append(Spacer(0,0.2*cm)) + if config['application_min_supporters']: + + cell2a.append(Paragraph("%s:" % _("Supporters"), stylesheet['Heading4'])) + + for s in application.supporter.all(): + cell2b.append(Paragraph(".  %s" % unicode(s.profile), stylesheet['Signaturefield'])) + if application.status == "pub": + for x in range(0,application.missing_supporters): + cell2b.append(Paragraph(".  __________________________________________",stylesheet['Signaturefield'])) + cell2b.append(Spacer(0,0.2*cm)) # status note = "" @@ -789,7 +792,7 @@ class ApplicationPDF(PDFView): cell4b = [] cell4b.append(Paragraph("%s" % application.public_version.aid, stylesheet['Normal'])) data.append([cell4a,cell4b]) - + poll_results = application.get_poll_results() # voting results