Fix / improve notification email subjects and bodies
This commit is contained in:
parent
5805cf52ad
commit
782950d904
4 changed files with 7 additions and 5 deletions
|
@ -200,7 +200,9 @@ def task_detail(request, task_id: int) -> HttpResponse:
|
|||
body=request.POST['comment-body'],
|
||||
)
|
||||
|
||||
send_email_to_thread_participants(task, request.POST['comment-body'], request.user)
|
||||
send_email_to_thread_participants(
|
||||
task, request.POST['comment-body'], request.user,
|
||||
subject='New comment posted on task "{}"'.format(task.title))
|
||||
messages.success(request, "Comment posted. Notification email sent to thread participants.")
|
||||
|
||||
# Save task edits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue