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

@@ -1,10 +1,10 @@
from app import db
from app.models import ServiceWhitelist
from app.models import ServiceGuestList
def dao_fetch_service_guest_list(service_id):
return ServiceWhitelist.query.filter(
ServiceWhitelist.service_id == service_id).all()
return ServiceGuestList.query.filter(
ServiceGuestList.service_id == service_id).all()
def dao_add_and_commit_guest_list_contacts(objs):
@@ -13,5 +13,5 @@ def dao_add_and_commit_guest_list_contacts(objs):
def dao_remove_service_guest_list(service_id):
return ServiceWhitelist.query.filter(
ServiceWhitelist.service_id == service_id).delete()
return ServiceGuestList.query.filter(
ServiceGuestList.service_id == service_id).delete()