diff --git a/scripts/site_imports/wjf/harness.py b/scripts/site_imports/wjf/harness.py index 9c11d0e..888059b 100644 --- a/scripts/site_imports/wjf/harness.py +++ b/scripts/site_imports/wjf/harness.py @@ -118,6 +118,10 @@ class Harness: plugin.on_install(self.app) except Exception: pass + # A full import IS the setup, so mark it complete - otherwise the admin + # is bounced to the first-run wizard on every fresh import DB. + from shopdb.core.models import Setting + Setting.set('setup_complete', 'true', valuetype='boolean', category='site') db.session.commit() def _mint_admin_pat(self):