emails: Use ugettext instead of ugettext_lazy in signals.

ugettext_lazy was printing the object in the email template
instead of the string.
This commit is contained in:
Vishnu Ks 2018-12-20 23:29:40 +05:30 committed by Tim Abbott
parent bf8db6f634
commit bcae08470c
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ from django.template import loader
from django.utils.timezone import \
get_current_timezone_name as timezone_get_current_timezone_name
from django.utils.timezone import now as timezone_now
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
from confirmation.models import one_click_unsubscribe_link
from zerver.lib.queue import queue_json_publish