#239 don't show supporters in the application PDF, if they are disabled

This commit is contained in:
Oskar Hahn 2012-06-30 11:57:07 +02:00
parent 039446a7ca
commit 1b108603ea

View File

@ -752,8 +752,11 @@ class ApplicationPDF(PDFView):
# supporters
cell2a = []
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
cell2b = []
if config['application_min_supporters']:
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
for s in application.supporter.all():
cell2b.append(Paragraph("<seq id='counter'/>.&nbsp; %s" % unicode(s.profile), stylesheet['Signaturefield']))
if application.status == "pub":