Included reference when persisting the notification.

This was already part of the data model.
Not included in the send_sms|email task because there is no reference from the job.
This commit is contained in:
Rebecca Law
2016-11-16 15:44:16 +00:00
parent a3eeb1a477
commit 924cec05b4
4 changed files with 14 additions and 9 deletions

View File

@@ -37,7 +37,8 @@ def post_sms_notification():
personalisation=form.get('personalisation', None),
notification_type=SMS_TYPE,
api_key_id=api_user.id,
key_type=api_user.key_type)
key_type=api_user.key_type,
reference=form['reference'])
send_notification_to_queue(notification, service.research_mode)
resp = create_post_sms_response_from_notification(notification,
@@ -63,7 +64,8 @@ def post_email_notification():
personalisation=form.get('personalisation', None),
notification_type=EMAIL_TYPE,
api_key_id=api_user.id,
key_type=api_user.key_type)
key_type=api_user.key_type,
reference=form['reference'])
send_notification_to_queue(notification, service.research_mode)