Let users delete a contact list

Follows our standard pattern of confirming with a red banner for actions
that are destructive.
This commit is contained in:
Chris Hill-Scott
2020-03-18 13:37:39 +00:00
parent 21310f9695
commit 8f15eee5e0
6 changed files with 95 additions and 0 deletions

View File

@@ -105,6 +105,12 @@ class ContactList(JSONModel):
template_type=metadata['template_type'],
))
def delete(self):
contact_list_api_client.delete_contact_list(
service_id=self.service_id,
contact_list_id=self.id,
)
@property
def contents(self):
return self.download(self.service_id, self.id)