From c88277f47894cca668055048bedf2b5bba3cd7bd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 14 Aug 2019 20:48:05 -0500 Subject: [PATCH] Cleanup attribute names for CORE Product model --- rattail_corepos/importing/corepos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rattail_corepos/importing/corepos.py b/rattail_corepos/importing/corepos.py index 438b3ae..101c9ca 100644 --- a/rattail_corepos/importing/corepos.py +++ b/rattail_corepos/importing/corepos.py @@ -183,8 +183,8 @@ class ProductImporter(FromCOREPOS, importing.model.ProductImporter): 'description': (product.description or '').strip(), 'size': size, - 'department_number': product.dept_no or None, - 'subdepartment_number': product.subdept or None, + 'department_number': product.department_number or None, + 'subdepartment_number': product.subdepartment_number or None, 'weighed': bool(product.scale), 'food_stampable': product.foodstamp,