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(
|
html_message = loader.render_to_string(
|
||||||
'email.html',
|
'email.html',
|
||||||
{
|
{
|
||||||
'on': settings.JABBER_DEFAULT_HOST,
|
'on': (settings.INSTANCE_DEFAULT_CLIENT or settings.JABBER_DEFAULT_HOST),
|
||||||
'instance': instance,
|
'instance': instance,
|
||||||
'author': who,
|
'author': who,
|
||||||
'object': where
|
'object': where
|
||||||
@ -144,7 +144,7 @@ def send_email_on_notification(sender, instance, created, **kwargs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
send_mail(
|
send_mail(
|
||||||
'Notification on ' + settings.JABBER_DEFAULT_HOST,
|
'Notification on ' + (settings.INSTANCE_DEFAULT_CLIENT or settings.JABBER_DEFAULT_HOST),
|
||||||
instance.summary,
|
instance.summary,
|
||||||
settings.EMAIL_HOST_USER or "noreply@" + settings.JABBER_DEFAULT_HOST,
|
settings.EMAIL_HOST_USER or "noreply@" + settings.JABBER_DEFAULT_HOST,
|
||||||
[instance.user.email],
|
[instance.user.email],
|
||||||
|
Loading…
Reference in New Issue
Block a user