Merge pull request #722 from alphagov/whitepace-in-personalisation

Ignore case and whitespace in personalisation keys
This commit is contained in:
Chris Hill-Scott
2016-11-11 11:33:37 +01:00
committed by GitHub
6 changed files with 8 additions and 10 deletions

View File

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