From a13747582a53d8ae641a20967fabd46a67f63b4a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 13 Jul 2024 09:48:32 -0500 Subject: [PATCH] fix: update config for default app model per rattail changes --- theo/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theo/config.py b/theo/config.py index 587f80c..1aa62d6 100644 --- a/theo/config.py +++ b/theo/config.py @@ -46,7 +46,7 @@ class TheoConfig(ConfigExtension): # do we integrate w/ CORE-POS? if integrate_corepos(config): - config.setdefault('rattail', 'model', 'theo.db.model_corepos') + config.setdefault('rattail', 'model_spec', 'theo.db.model_corepos') config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler') config.setdefault('rattail.batch', 'vendor_catalog.handler.spec', 'rattail_corepos.batch.vendorcatalog:VendorCatalogHandler') @@ -55,13 +55,13 @@ class TheoConfig(ConfigExtension): # do we integrate w/ Catapult? elif integrate_catapult(config): - config.setdefault('rattail', 'model', 'theo.db.model_catapult') + config.setdefault('rattail', 'model_spec', 'theo.db.model_catapult') config.setdefault('rattail', 'settings', 'theo.appsettings.theo, theo.appsettings.catapult') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_catapult:FromTheoToTheoVersions') # do we integrate w/ LOC SMS? elif integrate_locsms(config): - config.setdefault('rattail', 'model', 'theo.db.model_locsms') + config.setdefault('rattail', 'model_spec', 'theo.db.model_locsms') config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_locsms:FromTheoToTheoVersions')