Cleanup attribute names for CORE Department model

This commit is contained in:
Lance Edgar 2019-07-23 19:44:32 -05:00
parent bfb6a4c7ec
commit 2a37bb5a49
2 changed files with 3 additions and 3 deletions

View file

@ -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?

View file

@ -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,
} }