mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
Bug fix
This commit is contained in:
parent
ace61c6aab
commit
c8bbd25001
@ -129,7 +129,7 @@ class EmailNotification(BulkNotificationMethod):
|
|||||||
|
|
||||||
def send_bulk(self):
|
def send_bulk(self):
|
||||||
html_message = render_to_string(self.context['template']['html'], self.context)
|
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)
|
InvenTree.tasks.send_email(self.context['template']['subject'], '', targets, html_message=html_message)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user