From 9ede5b339d4ff7eca6a96bb021ed8f952da94688 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 25 Jul 2019 16:14:24 -0500 Subject: [PATCH] Cleanup attribute names for CORE Subdepartment model --- rattail_corepos/importing/corepos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rattail_corepos/importing/corepos.py b/rattail_corepos/importing/corepos.py index b2e4f92..438b3ae 100644 --- a/rattail_corepos/importing/corepos.py +++ b/rattail_corepos/importing/corepos.py @@ -131,9 +131,9 @@ class SubdepartmentImporter(FromCOREPOS, importing.model.SubdepartmentImporter): def normalize_host_object(self, subdepartment): return { - 'number': subdepartment.subdept_no, - 'name': subdepartment.subdept_name, - 'department_number': subdepartment.dept_ID, + 'number': subdepartment.number, + 'name': subdepartment.name, + 'department_number': subdepartment.department_number, }