Merge pull request #853 from alphagov/ignore-additional-personalisation

Quietly ignore extra personalisation
This commit is contained in:
Chris Hill-Scott
2017-03-10 16:16:27 +00:00
committed by GitHub
6 changed files with 7 additions and 27 deletions

View File

@@ -309,11 +309,6 @@ def create_template_object_for_notification(template, personalisation):
errors = {'template': [message]}
raise InvalidRequest(errors, status_code=400)
if template_object.additional_data:
message = 'Personalisation not needed for template: {}'.format(", ".join(template_object.additional_data))
errors = {'template': [message]}
raise InvalidRequest(errors, status_code=400)
if (
template_object.template_type == SMS_TYPE and
template_object.content_count > current_app.config.get('SMS_CHAR_COUNT_LIMIT')