diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index 256415af89..e6f88d6e0e 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -368,6 +368,7 @@ class DocumentVersion(models.Model): # If converter backend doesn't understand the format, # use 1 as the total page count detected_pages = 1 + # TODO: should be no pages instead? with transaction.atomic(): self.pages.all().delete()