Improved else block.

This commit is contained in:
Emanuel Schuetze 2012-07-23 22:59:31 +02:00
parent b6ffc66d40
commit cdddc00d54

View File

@ -270,7 +270,7 @@ class PDFView(PermissionMixin, View):
if self.document_title: if self.document_title:
return unicode(self.document_title) return unicode(self.document_title)
else: else:
return self.document_title return ''
def get_filename(self): def get_filename(self):
return self.filename return self.filename