Remove template link from preview for precompiled letters

This commit is contained in:
Ken Tsang
2018-03-02 17:06:51 +00:00
parent 5c26d7a061
commit bcf86239c6
5 changed files with 49 additions and 4 deletions

View File

@@ -205,6 +205,7 @@ def template_json(service_id,
service_letter_contact=None,
reply_to=None,
reply_to_text=None,
is_precompiled_letter=False,
):
template = {
'id': id_,
@@ -219,6 +220,7 @@ def template_json(service_id,
'service_letter_contact': service_letter_contact,
'reply_to': reply_to,
'reply_to_text': reply_to_text,
'is_precompiled_letter': is_precompiled_letter,
}
if content is None:
template['content'] = "template content"