Don’t prefix text messages is sender name is set

Implements:
- [x] https://github.com/alphagov/notifications-utils/pull/66
This commit is contained in:
Chris Hill-Scott
2016-08-23 13:33:17 +01:00
parent 270451e7ba
commit f7391da350
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ def send_sms_to_provider(self, service_id, notification_id):
template = Template(
template_model.__dict__,
values={} if not notification.personalisation else notification.personalisation,
renderer=SMSMessage(prefix=service.name)
renderer=SMSMessage(prefix=service.name, sender=service.sms_sender)
)
try:
if service.research_mode or notification.key_type == KEY_TYPE_TEST: