Don't scan documents without at least a version for duplicates.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
2abd37c131
commit
8a3f9c7e4e
@@ -116,6 +116,9 @@ class DuplicatedDocumentManager(models.Manager):
|
||||
"""
|
||||
Find duplicates by matching latest version checksums
|
||||
"""
|
||||
if not document.latest_version:
|
||||
return None
|
||||
|
||||
Document = apps.get_model(
|
||||
app_label='documents', model_name='Document'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user