A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Removed duplicate check if instance.filename
Wolf-Bastian Poettnerec3607cf1f52
diff --git a/src/documents/models.py b/src/documents/models.pyindex e37a4fbb5..65beb80d4 100644--- a/src/documents/models.py+++ b/src/documents/models.py@@ -416,8 +416,7 @@ def update_filename(sender, instance, **kwargs):new_filename = instance.generate_source_filename()# If the filename is the same, then nothing needs to be done- if instance.filename is None or \- instance.filename == new_filename:+ if instance.filename == new_filename:return# Check if filename needs changing