We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a4fc5d commit f88f355Copy full SHA for f88f355
1 file changed
site/kcworks/config/mail.py
@@ -45,4 +45,9 @@
45
46
# Welcome email
47
# -------------
48
-SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to KCWorks!")
+# Plain str (not lazy_gettext): this value is read once at app config load,
49
+# outside any request/locale context, so lazy translation would not produce a
50
+# recipient-localized subject. A LazyString here also breaks Kombu when
51
+# Invenio-Accounts' delay_security_email pushes msg.__dict__ to Celery
52
+# (kombu.exceptions.EncodeError: can not serialize 'LazyString' object).
53
+SECURITY_EMAIL_SUBJECT_REGISTER = "Welcome to KCWorks!"
0 commit comments