Hide "Reason" in Application PDF if there is none.
This commit is contained in:
parent
59e6218a80
commit
e4367051df
@ -828,8 +828,9 @@ class ApplicationPDF(PDFView):
|
||||
# text
|
||||
story.append(Paragraph("%s" % application.public_version.text.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||
# reason
|
||||
story.append(Paragraph(_("Reason")+":", stylesheet['Heading3']))
|
||||
story.append(Paragraph("%s" % application.public_version.reason.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||
if application.public_version.reason:
|
||||
story.append(Paragraph(_("Reason")+":", stylesheet['Heading3']))
|
||||
story.append(Paragraph("%s" % application.public_version.reason.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||
return story
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user