Cleanup attribute names for CORE Department model
This commit is contained in:
parent
bfb6a4c7ec
commit
2a37bb5a49
|
@ -56,7 +56,7 @@ class COREPOSProductWatcher(DataSyncWatcher):
|
|||
(None,
|
||||
model.DataSyncChange(
|
||||
payload_type='Department',
|
||||
payload_key=six.text_type(dept.dept_no)))
|
||||
payload_key=six.text_type(dept.number)))
|
||||
for dept in departments])
|
||||
|
||||
# TODO: subdepartment table doesn't have a modified flag?
|
||||
|
|
|
@ -112,8 +112,8 @@ class DepartmentImporter(FromCOREPOS, importing.model.DepartmentImporter):
|
|||
|
||||
def normalize_host_object(self, department):
|
||||
return {
|
||||
'number': department.dept_no,
|
||||
'name': department.dept_name,
|
||||
'number': department.number,
|
||||
'name': department.name,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue