diff --git a/.python-version b/.python-version index 43077b246..ac957df86 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.9.18 +3.10.6 diff --git a/Pipfile b/Pipfile index d8b66d719..1b8d3a94a 100644 --- a/Pipfile +++ b/Pipfile @@ -52,6 +52,7 @@ bleach = "*" zxing-cpp = {version = "*", platform_machine = "== 'x86_64'"} django-multiselectfield = "*" gotenberg-client = "*" +django-auditlog = "*" [dev-packages] # Linting diff --git a/docs/configuration.md b/docs/configuration.md index ac93efdeb..cea2801e1 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1140,7 +1140,10 @@ combination with PAPERLESS_CONSUMER_BARCODE_UPSCALE bigger than 1.0. #### [`PAPERLESS_AUDIT_ENABLED=`](#PAPERLESS_AUDIT_ENABLED){PAPERLESS_AUDIT_ENABLED} -: Enables an audit trail for each document,document type, correspondent, and tag. This records all changes made to the documents to meet requirement such as GoDB. **Once enabled cannot be disabled!!** +: Enables an audit trail for each document,document type, correspondent, and tag. This records all changes made to the documents to make the changes traceable. + +!!! note Warning +Once enabled cannot be disabled ## Collate Double-Sided Documents {#collate} diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ab8b7eb89..9f221169f 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -290,6 +290,7 @@ INSTALLED_APPS = [ "django_filters", "django_celery_results", "guardian", + "auditlog", *env_apps, ] @@ -326,6 +327,7 @@ MIDDLEWARE = [ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", + "auditlog.middleware.AuditlogMiddleware", ] # Optional to enable compression