fix pdf width
This commit is contained in:
parent
debe02e800
commit
a1af2bea9c
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ class Document(models.Model):
|
||||||
def get_info(self):
|
def get_info(self):
|
||||||
if self.extension == 'pdf':
|
if self.extension == 'pdf':
|
||||||
if self.pages == -1:
|
if self.pages == -1:
|
||||||
self.width = 1
|
self.width = -1
|
||||||
self.height = -1
|
self.height = -1
|
||||||
self.pages = utils.pdfpages(self.file.path)
|
self.pages = utils.pdfpages(self.file.path)
|
||||||
elif self.width == -1:
|
elif self.width == -1:
|
||||||
|
|
Loading…
Reference in a new issue