Fix warning condition

This commit is contained in:
shamoon 2024-04-03 08:05:54 -07:00
parent a6104b8cf6
commit 0a9c6ed07f

View File

@ -204,7 +204,7 @@ def audit_log_check(app_configs, **kwargs):
all_tables = db_conn.introspection.table_names()
result = []
if ("auditlog_logentry" in all_tables) or (settings.AUDIT_LOG_DISABLED):
if ("auditlog_logentry" in all_tables) and (settings.AUDIT_LOG_DISABLED):
result.append(
Warning(
("auditlog table was found but AUDIT_LOG_DISABLED is active."),