A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fixed an ugly bug that broke all deletions
Daniel Quinn0a0ff8da90d3
diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.pyindex 666bcbeb3..a4096154b 100644--- a/src/documents/signals/handlers.py+++ b/src/documents/signals/handlers.py@@ -5,7 +5,7 @@ from subprocess import Popenfrom django.conf import settings-from ..models import Correspondent, Tag+from ..models import Correspondent, Document, Tagdef logger(message, group):@@ -85,6 +85,10 @@ def run_post_consume_script(sender, document, **kwargs):def cleanup_document_deletion(sender, instance, using, **kwargs):++ if not isinstance(instance, Document):+ return+for f in (instance.source_path, instance.thumbnail_path):try:os.unlink(f)