Add decorator deleting cache for template folder client update method

This commit is contained in:
Pea Tyczynska
2018-11-13 11:43:59 +00:00
parent 0a4b6dbb33
commit c27b97380d
2 changed files with 19 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ class TemplateFolderAPIClient(NotifyAdminAPIClient):
template_ids,
))
@cache.delete('service-{service_id}-template-folders')
def update_template_folder(self, service_id, template_folder_id, name):
self.post(
'/service/{}/template-folder/{}'.format(service_id, template_folder_id),