Merge pull request #775 from alphagov/do-not-write-test-data-to-the-history-table

Do not write test data to the history table
This commit is contained in:
minglis
2017-01-10 13:05:06 +00:00
committed by GitHub
8 changed files with 168 additions and 63 deletions

View File

@@ -33,7 +33,7 @@ def post_sms_notification():
notification = persist_notification(template_id=template.id,
template_version=template.version,
recipient=form['phone_number'],
service_id=service.id,
service=service,
personalisation=form.get('personalisation', None),
notification_type=SMS_TYPE,
api_key_id=api_user.id,
@@ -61,7 +61,7 @@ def post_email_notification():
notification = persist_notification(template_id=template.id,
template_version=template.version,
recipient=form['email_address'],
service_id=service.id,
service=service,
personalisation=form.get('personalisation', None),
notification_type=EMAIL_TYPE,
api_key_id=api_user.id,