Fix warning condition
This commit is contained in:
parent
a6104b8cf6
commit
0a9c6ed07f
@ -204,7 +204,7 @@ def audit_log_check(app_configs, **kwargs):
|
|||||||
all_tables = db_conn.introspection.table_names()
|
all_tables = db_conn.introspection.table_names()
|
||||||
result = []
|
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(
|
result.append(
|
||||||
Warning(
|
Warning(
|
||||||
("auditlog table was found but AUDIT_LOG_DISABLED is active."),
|
("auditlog table was found but AUDIT_LOG_DISABLED is active."),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user