set verified country field

This commit is contained in:
Frédéric Péters 2016-09-26 09:47:48 +02:00
parent 269680a67e
commit 040987165b
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class AuthenticAdapter(DefaultAdapter):
# change from list to string
attributes['lieuxMariage'] = '|'.join(attributes.get('lieuxMariage'))
# assume all answers are for Belgium, this may not actually be true
attributes['pays'] = 'Belgique'
attribute_mapping = [
('prenom', 'first_name'),
('nom', 'last_name'),
@ -78,6 +81,7 @@ class AuthenticAdapter(DefaultAdapter):
('lieuxMariage', 'wedding_cities'),
('lieuNaissance', 'birthplace'),
('dateNaissance', 'birthdate'),
('pays' 'country'),
]
for nrn_attribute, user_attribute in attribute_mapping:
try: