Commit 1e50dd0a authored by jocelyn's avatar jocelyn
Browse files

Fix language in notification email

parent 511bc0eb
......@@ -13,7 +13,7 @@ from django.conf import settings
from django.core.mail import send_mail
from django.core.management.base import BaseCommand, CommandError
from django.template.loader import get_template
from django.utils.translation import activate
from ...models import Contrib
from ...tokens import ContribTokenManager
......@@ -66,6 +66,9 @@ class Command(BaseCommand):
'isp': settings.ISP,
'management_link': contrib.make_management_url(mgmt_token),
}
# Without that, getting month & day names in english
activate(settings.LANGUAGE_CODE)
send_mail(
subject.render(context),
body.render(context),
......
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