Don't return hidden templates in API service template responses

Brings back filtering hidden templates from the API responses.
This commit is contained in:
Alexey Bezhan
2018-02-26 13:18:51 +00:00
parent dc99fe5ff3
commit 984a5050db
3 changed files with 76 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ def sample_template(
template_type="sms",
content="This is a template:\nwith a newline",
archived=False,
hidden=False,
subject_line='Subject',
user=None,
service=None,
@@ -237,6 +238,7 @@ def sample_template(
'service': service,
'created_by': created_by,
'archived': archived,
'hidden': hidden,
'process_type': process_type
}
if template_type in ['email', 'letter']: