Update send_to_providers and create_dvla_file_contents_for_notifications to use notification.reply_to_text.

The next thing to do is to stop updating the notification to sender mapping tables.
This commit is contained in:
Rebecca Law
2017-11-27 15:24:16 +00:00
parent 4ecf168590
commit 03c3ebbbe7
5 changed files with 36 additions and 34 deletions

View File

@@ -162,7 +162,8 @@ def create_notification(
scheduled_for=None,
normalised_to=None,
one_off=False,
sms_sender_id=None
sms_sender_id=None,
reply_to_text=None
):
if created_at is None:
created_at = datetime.utcnow()
@@ -206,7 +207,8 @@ def create_notification(
'rate_multiplier': rate_multiplier,
'international': international,
'phone_prefix': phone_prefix,
'normalised_to': normalised_to
'normalised_to': normalised_to,
'reply_to_text': reply_to_text
}
notification = Notification(**data)
dao_create_notification(notification)