mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-16 00:36:22 +00:00
Change: enable auditlog by default, fix import / export (#6267)
This commit is contained in:
@@ -5,7 +5,6 @@ import shutil
|
||||
import stat
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.checks import Critical
|
||||
from django.core.checks import Error
|
||||
from django.core.checks import Warning
|
||||
from django.core.checks import register
|
||||
@@ -205,13 +204,10 @@ def audit_log_check(app_configs, **kwargs):
|
||||
all_tables = db_conn.introspection.table_names()
|
||||
result = []
|
||||
|
||||
if ("auditlog_logentry" in all_tables) and not (settings.AUDIT_LOG_ENABLED):
|
||||
if ("auditlog_logentry" in all_tables) and not settings.AUDIT_LOG_ENABLED:
|
||||
result.append(
|
||||
Critical(
|
||||
(
|
||||
"auditlog table was found but PAPERLESS_AUDIT_LOG_ENABLED"
|
||||
" is not active. This setting cannot be disabled after enabling"
|
||||
),
|
||||
Warning(
|
||||
("auditlog table was found but audit log is disabled."),
|
||||
),
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user