diff --git a/themis/libellioimport/migration.py b/themis/libellioimport/migration.py index 0d69ff8..b67d362 100644 --- a/themis/libellioimport/migration.py +++ b/themis/libellioimport/migration.py @@ -341,8 +341,12 @@ class ImportDeputies(BrowserView): object.birthplace = d.find('parlLocBirthDay').text object.polgroup = RelationValue(self.get_polgroup_intid( polgroups.get(d.find('grpPolId').text))) + if d.find('parlProfession') is not None: + object.profession = d.find('parlProfession').text if d.find('parlFormation') is not None: object.degrees = d.find('parlFormation').text + if d.find('parlFunctions') is not None: + object.mandates = d.find('parlFunctions').text if not object.private_address: object.private_address = Address() if not object.work_address: