From e14798dcdca7bcf538af69005140a855ae235cec Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 28 Jul 2022 21:19:04 +0200 Subject: [PATCH] core: import all models into shell Signed-off-by: Jens Langhammer --- authentik/core/management/commands/shell.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/authentik/core/management/commands/shell.py b/authentik/core/management/commands/shell.py index f8dbc19d8..b3d85cfae 100644 --- a/authentik/core/management/commands/shell.py +++ b/authentik/core/management/commands/shell.py @@ -40,9 +40,6 @@ class Command(BaseCommand): # pragma: no cover # Gather Django models and constants from each app for app in apps.get_app_configs(): - if not app.name.startswith("authentik"): - continue - # Load models from each app for model in app.get_models(): namespace[model.__name__] = model