use print here, we are selfless

This commit is contained in:
Thomas Steen Rasmussen 2016-05-30 18:35:45 +02:00
parent d12ab4444a
commit 349cc325d7

View file

@ -41,7 +41,7 @@ def generate_pdf_letter(filename, template, formatdict):
### save the generated pdf to the archive
with open(settings.PDF_ARCHIVE_PATH+filename, 'w') as fh:
finalpdf.write(fh)
self.stdout.write('Saved pdf to archive: %s' % settings.PDF_ARCHIVE_PATH+filename)
print('Saved pdf to archive: %s' % settings.PDF_ARCHIVE_PATH+filename)
### return a file object with the data
returnfile = StringIO.StringIO()