mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 08:43:10 +00:00
Make from_address optional in send_email_task
This commit is contained in:
parent
9557bc6605
commit
680119dfef
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def send_notification(page_revision_id, notification, excluded_user_id):
|
|||
|
||||
|
||||
@task
|
||||
def send_email_task(email_subject, email_content, from_email, email_addresses):
|
||||
def send_email_task(email_subject, email_content, email_addresses, from_email=None):
|
||||
if not from_email:
|
||||
if hasattr(settings, 'WAGTAILADMIN_NOTIFICATION_FROM_EMAIL'):
|
||||
from_email = settings.WAGTAILADMIN_NOTIFICATION_FROM_EMAIL
|
||||
|
|
|
|||
Loading…
Reference in a new issue