Set a notification.status=created in the send_sms task

This commit is contained in:
Rebecca Law
2016-06-21 14:38:17 +01:00
parent fa20e67941
commit b17aaaabfb
2 changed files with 30 additions and 30 deletions

View File

@@ -155,7 +155,7 @@ def send_sms(self, service_id, notification_id, encrypted_notification, created_
service_id=service_id,
job_id=notification.get('job', None),
job_row_number=notification.get('row_number', None),
status='sending',
status='created',
created_at=datetime.strptime(created_at, DATETIME_FORMAT),
personalisation=notification.get('personalisation')
)