core: import all models into shell
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
e49050af19
commit
e14798dcdc
|
@ -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
|
||||||
|
|
Reference in New Issue