Add a message saying a template has been redacted

This is useful if it’s been redacted by someone who isn’t you.
This commit is contained in:
Chris Hill-Scott
2017-06-28 15:26:09 +01:00
parent afbe175d15
commit 6e48dc7689
5 changed files with 31 additions and 5 deletions

View File

@@ -91,7 +91,9 @@ def template_json(service_id,
subject=None,
version=1,
archived=False,
process_type='normal'):
process_type='normal',
redact_personalisation=False,
):
template = {
'id': id_,
'name': name,
@@ -101,10 +103,12 @@ def template_json(service_id,
'version': version,
'updated_at': datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f'),
'archived': archived,
'process_type': process_type
'process_type': process_type,
}
if subject is not None:
template['subject'] = subject
if redact_personalisation is not None:
template['redact_personalisation'] = redact_personalisation
return template