A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Put imports at the top
Daniel Quinnd37aabfb067a
diff --git a/src/documents/checks.py b/src/documents/checks.pyindex d564d8e8e..c80b63863 100644--- a/src/documents/checks.py+++ b/src/documents/checks.py@@ -1,3 +1,5 @@+import textwrap+from django.conf import settingsfrom django.core.checks import Error, registerfrom django.db.utils import OperationalError@@ -16,13 +18,14 @@ def changed_password_check(app_configs, **kwargs):return [] # No documents table yetif encrypted_doc:+if not settings.PASSPHRASE:return [Error("The database contains encrypted documents but no password ""is set.")]- elif not GnuPG.decrypted(encrypted_doc.source_file):- import textwrap++ if not GnuPG.decrypted(encrypted_doc.source_file):return [Error(textwrap.dedent("""The current password doesn't match the password of the