Enable pre save hook

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-01-31 06:07:29 -04:00
parent e97dde5b46
commit d5fc50272d
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class NewVersionBlockManager(models.Manager):
return self.filter(document=document).exists()
def new_versions_allowed(self, document):
if self.filter(document=document).exist():
if self.filter(document=document).exists():
raise NewDocumentVersionNotAllowed
def unblock(self, document):