update: add INSTANCE_DEFAULT_CLIENT

This commit is contained in:
Jean-Baptiste Pasquier 2020-04-20 13:18:59 +02:00
parent b96dbc1302
commit ac67f9796a
No known key found for this signature in database
GPG Key ID: F2702E6D22ED4D62

View File

@ -136,7 +136,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
html_message = loader.render_to_string(
'email.html',
{
'on': settings.JABBER_DEFAULT_HOST,
'on': (settings.INSTANCE_DEFAULT_CLIENT or settings.JABBER_DEFAULT_HOST),
'instance': instance,
'author': who,
'object': where
@ -144,7 +144,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
)
send_mail(
'Notification on ' + settings.JABBER_DEFAULT_HOST,
'Notification on ' + (settings.INSTANCE_DEFAULT_CLIENT or settings.JABBER_DEFAULT_HOST),
instance.summary,
settings.EMAIL_HOST_USER or "noreply@" + settings.JABBER_DEFAULT_HOST,
[instance.user.email],