From 179edb659a14f97c7ceb6f5d28219daf9d4a969d Mon Sep 17 00:00:00 2001 From: Dinis Date: Tue, 13 Aug 2019 18:04:30 +0100 Subject: [PATCH] Load all models when using --force_migrate (same behaviour as appadmin). --- gluon/shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gluon/shell.py b/gluon/shell.py index f249c341..fe94692c 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -249,6 +249,7 @@ def run( fileutils.create_app(adir) if force_migrate: + c = 'appadmin' # Load all models (hack already used for appadmin controller) import_models = True from gluon.dal import DAL orig_init = DAL.__init__