core: import all models into shell

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-07-28 21:19:04 +02:00
parent e49050af19
commit e14798dcdc
1 changed files with 0 additions and 3 deletions

View File

@ -40,9 +40,6 @@ class Command(BaseCommand): # pragma: no cover
# Gather Django models and constants from each app # Gather Django models and constants from each app
for app in apps.get_app_configs(): for app in apps.get_app_configs():
if not app.name.startswith("authentik"):
continue
# Load models from each app # Load models from each app
for model in app.get_models(): for model in app.get_models():
namespace[model.__name__] = model namespace[model.__name__] = model