update: add INSTANCE_DEFAULT_CLIENT
This commit is contained in:
parent
b96dbc1302
commit
ac67f9796a
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user