Merge pull request #280 from alphagov/api-insensitive-processing

Process CSV files with column headers of any case
This commit is contained in:
Chris Hill-Scott
2016-05-04 11:04:24 +01:00
6 changed files with 9 additions and 6 deletions

View File

@@ -156,7 +156,10 @@ def process_job(job_id):
'template': str(template.id),
'job': str(job.id),
'to': recipient,
'personalisation': personalisation
'personalisation': {
key: personalisation.get(key)
for key in template.placeholders
}
})
if template.template_type == 'sms':