From 8bc8142c44f3219f3231260f23e64a026c98e072 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 20 Apr 2020 23:27:51 +0200 Subject: [PATCH] Silence system check about guardian not being hooked guardian is not used and only serves as a backend to rules --- aleksis/core/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py index 35758dca5..eb24f076d 100644 --- a/aleksis/core/settings.py +++ b/aleksis/core/settings.py @@ -30,6 +30,8 @@ _settings = LazySettings( # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +SILENCED_SYSTEM_CHECKS = [] + # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = _settings.get("secret_key", "DoNotUseInProduction") @@ -582,6 +584,8 @@ LOGGING = { GUARDIAN_RAISE_403 = True ANONYMOUS_USER_NAME = None +SILENCED_SYSTEM_CHECKS.append("guardian.W001") + # Append authentication backends AUTHENTICATION_BACKENDS.append("rules.permissions.ObjectPermissionBackend") -- GitLab