Beautify the template version links and template link page.

This commit is contained in:
Nicholas Staples
2016-05-20 13:58:16 +01:00
parent 4c2ee8e8ed
commit 83f25cd89b
9 changed files with 92 additions and 22 deletions

View File

@@ -54,14 +54,14 @@ def template_json(service_id,
type_="sms",
content="template content",
subject=None,
versions='1'):
version=1):
template = {
'id': id_,
'name': name,
'template_type': type_,
'content': content,
'service': service_id,
'version': versions
'version': version
}
if subject is not None:
template['subject'] = subject