Use the notification types enum for the notifications.notification_type.

Reuse EMAIL_TYPE in template_types and notification_types.
This commit is contained in:
Rebecca Law
2016-06-29 11:50:54 +01:00
parent 60e159e3c0
commit 25db1bce74
6 changed files with 35 additions and 27 deletions

View File

@@ -23,6 +23,8 @@ from notifications_utils.template import (
unlink_govuk_escaped
)
from app.models import SMS_TYPE
def retry_iteration_to_delay(retry=0):
"""
@@ -75,7 +77,7 @@ def send_sms_to_provider(self, service_id, notification_id, encrypted_notificati
update_provider_stats(
notification_id,
'sms',
SMS_TYPE,
provider.get_name(),
content_char_count=template.replaced_content_count
)