mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Allow setting reply_to when creating a test template
This commit is contained in:
@@ -123,7 +123,8 @@ def create_template(
|
|||||||
template_name=None,
|
template_name=None,
|
||||||
subject='Template subject',
|
subject='Template subject',
|
||||||
content='Dear Sir/Madam, Hello. Yours Truly, The Government.',
|
content='Dear Sir/Madam, Hello. Yours Truly, The Government.',
|
||||||
template_id=None
|
template_id=None,
|
||||||
|
reply_to=None
|
||||||
):
|
):
|
||||||
data = {
|
data = {
|
||||||
'name': template_name or '{} Template Name'.format(template_type),
|
'name': template_name or '{} Template Name'.format(template_type),
|
||||||
@@ -131,6 +132,7 @@ def create_template(
|
|||||||
'content': content,
|
'content': content,
|
||||||
'service': service,
|
'service': service,
|
||||||
'created_by': service.created_by,
|
'created_by': service.created_by,
|
||||||
|
'reply_to': reply_to,
|
||||||
}
|
}
|
||||||
if template_type != SMS_TYPE:
|
if template_type != SMS_TYPE:
|
||||||
data['subject'] = subject
|
data['subject'] = subject
|
||||||
|
|||||||
Reference in New Issue
Block a user