Rename model

Reflects the new name of the feature.

Note that the name of the underlying table hasn’t changed because it’s
explicitly set to `service_whitelist`. Changing this will be a more
involved process.
This commit is contained in:
Chris Hill-Scott
2020-07-28 10:22:13 +01:00
parent 4d896aa642
commit 083573e4dc
9 changed files with 35 additions and 35 deletions

View File

@@ -17,7 +17,7 @@ from app.models import (
PRIORITY,
SMS_TYPE,
Notification,
ServiceWhitelist,
ServiceGuestList,
)
from tests.app.db import (
@@ -270,7 +270,7 @@ def test_send_one_off_notification_raises_if_cant_send_to_recipient(
service = create_service(restricted=True)
template = create_template(service=service)
dao_add_and_commit_guest_list_contacts([
ServiceWhitelist.from_string(service.id, MOBILE_TYPE, '07700900123'),
ServiceGuestList.from_string(service.id, MOBILE_TYPE, '07700900123'),
])
post_data = {