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

@@ -3,7 +3,7 @@ import itertools
from notifications_utils.recipients import allowed_to_send_to
from app.models import (
ServiceWhitelist,
ServiceGuestList,
MOBILE_TYPE, EMAIL_TYPE,
KEY_TYPE_TEST, KEY_TYPE_TEAM, KEY_TYPE_NORMAL)
@@ -16,7 +16,7 @@ def get_recipients_from_request(request_json, key, type):
def get_guest_list_objects(service_id, request_json):
return [
ServiceWhitelist.from_string(service_id, type, recipient)
ServiceGuestList.from_string(service_id, type, recipient)
for type, recipient in (
get_recipients_from_request(request_json,
'phone_numbers',