From 13e5f2a8018356cbbb1e135efc500b87331e0a79 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 10 Jun 2023 18:01:17 -0500 Subject: [PATCH] Add version importer for `CoreCustomerShopper` model --- rattail_corepos/importing/versions.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rattail_corepos/importing/versions.py b/rattail_corepos/importing/versions.py index f0d5d89..926b60a 100644 --- a/rattail_corepos/importing/versions.py +++ b/rattail_corepos/importing/versions.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2023 Lance Edgar # # This file is part of Rattail. # @@ -35,6 +35,7 @@ class CoreposVersionMixin(object): def add_corepos_importers(self, importers): importers['CorePerson'] = CorePersonImporter importers['CoreCustomer'] = CoreCustomerImporter + importers['CoreCustomerShopper'] = CoreCustomerShopperImporter importers['CoreMember'] = CoreMemberImporter importers['CoreStore'] = CoreStoreImporter importers['CoreDepartment'] = CoreDepartmentImporter @@ -60,6 +61,13 @@ class CoreCustomerImporter(base.VersionImporter): return model.CoreCustomer +class CoreCustomerShopperImporter(base.VersionImporter): + + @property + def host_model_class(self): + return self.model.CoreCustomerShopper + + class CoreMemberImporter(base.VersionImporter): @property