Improved else block.
This commit is contained in:
parent
b6ffc66d40
commit
cdddc00d54
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user