Clear user cache when deleting a service

The user JSON has a list of service IDs
This commit is contained in:
Chris Hill-Scott
2018-04-19 13:23:47 +01:00
parent 9a3f9b7273
commit 1c91e10d5d
3 changed files with 8 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a" * 73, "b")
@cache.delete('user', key_from_args=[4])
def create_service(
self,
service_name,