add import of other mandates and profession
This commit is contained in:
parent
163cb37fb2
commit
efee9ad1a6
|
@ -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:
|
||||
|
|
Reference in New Issue