From a0a99da1f59e170453e4b0d210e2a1ea6e80d7eb Mon Sep 17 00:00:00 2001 From: Francisco Macedo Date: Wed, 13 Jul 2022 16:45:14 +0100 Subject: [PATCH] Fix: save template even if not rendered on delivery (#395) --- post_office/mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post_office/mail.py b/post_office/mail.py index c3311e60..8c8243fe 100644 --- a/post_office/mail.py +++ b/post_office/mail.py @@ -86,7 +86,8 @@ def create(sender, recipients=None, cc=None, bcc=None, subject='', message='', expires_at=expires_at, message_id=message_id, headers=headers, priority=priority, status=status, - backend_alias=backend + backend_alias=backend, + template=template, ) if commit: