Commit c8364b62 authored by Michal Čihař's avatar Michal Čihař

Include site within mail context

parent a36da697
......@@ -69,9 +69,10 @@ def send_notification_email(language, email, notification, translation_obj,
html_body_template = 'mail/%s.html' % notification
# Adjust context
domain = Site.objects.get_current().domain
site = Site.objects.get_current()
context['translation'] = translation_obj
context['current_site'] = domain
context['current_site'] = site.domain
context['site'] = site
context['translation_url'] = get_site_url(
translation_obj.get_absolute_url()
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment