From c8bbd25001d67149824dea1fa91ed3b2e78648bf Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 20 Mar 2022 19:41:42 +1100 Subject: [PATCH] Bug fix --- InvenTree/common/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/notifications.py b/InvenTree/common/notifications.py index a2c0622f91..9151f9b879 100644 --- a/InvenTree/common/notifications.py +++ b/InvenTree/common/notifications.py @@ -129,7 +129,7 @@ class EmailNotification(BulkNotificationMethod): def send_bulk(self): html_message = render_to_string(self.context['template']['html'], self.context) - targets = self.get_targets() + targets = self.get_targets().values_list('email', flat=True) InvenTree.tasks.send_email(self.context['template']['subject'], '', targets, html_message=html_message)