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
@@ -30,6 +30,7 @@ Next (2018-XX-XX)
|
|||||||
- Add periodic AJAX workers to update the value of the notifications link.
|
- Add periodic AJAX workers to update the value of the notifications link.
|
||||||
- Add notification count inside a badge on the notification link.
|
- Add notification count inside a badge on the notification link.
|
||||||
- Add the MERC specifying javascript library usage.
|
- Add the MERC specifying javascript library usage.
|
||||||
|
- Documents without at least a version are not scanned for duplicates.
|
||||||
|
|
||||||
2.8 (2018-02-27)
|
2.8 (2018-02-27)
|
||||||
================
|
================
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ class DuplicatedDocumentManager(models.Manager):
|
|||||||
"""
|
"""
|
||||||
Find duplicates by matching latest version checksums
|
Find duplicates by matching latest version checksums
|
||||||
"""
|
"""
|
||||||
|
if not document.latest_version:
|
||||||
|
return None
|
||||||
|
|
||||||
Document = apps.get_model(
|
Document = apps.get_model(
|
||||||
app_label='documents', model_name='Document'
|
app_label='documents', model_name='Document'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user