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