Add version importer for CoreCustomerShopper
model
This commit is contained in:
parent
660637522d
commit
13e5f2a801
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2021 Lance Edgar
|
# Copyright © 2010-2023 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -35,6 +35,7 @@ class CoreposVersionMixin(object):
|
||||||
def add_corepos_importers(self, importers):
|
def add_corepos_importers(self, importers):
|
||||||
importers['CorePerson'] = CorePersonImporter
|
importers['CorePerson'] = CorePersonImporter
|
||||||
importers['CoreCustomer'] = CoreCustomerImporter
|
importers['CoreCustomer'] = CoreCustomerImporter
|
||||||
|
importers['CoreCustomerShopper'] = CoreCustomerShopperImporter
|
||||||
importers['CoreMember'] = CoreMemberImporter
|
importers['CoreMember'] = CoreMemberImporter
|
||||||
importers['CoreStore'] = CoreStoreImporter
|
importers['CoreStore'] = CoreStoreImporter
|
||||||
importers['CoreDepartment'] = CoreDepartmentImporter
|
importers['CoreDepartment'] = CoreDepartmentImporter
|
||||||
|
@ -60,6 +61,13 @@ class CoreCustomerImporter(base.VersionImporter):
|
||||||
return model.CoreCustomer
|
return model.CoreCustomer
|
||||||
|
|
||||||
|
|
||||||
|
class CoreCustomerShopperImporter(base.VersionImporter):
|
||||||
|
|
||||||
|
@property
|
||||||
|
def host_model_class(self):
|
||||||
|
return self.model.CoreCustomerShopper
|
||||||
|
|
||||||
|
|
||||||
class CoreMemberImporter(base.VersionImporter):
|
class CoreMemberImporter(base.VersionImporter):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue