fix: 站内信 ServerPerformanceCheck redis 订阅报错

pull/7629/head
xinwen 2022-02-16 20:07:35 +08:00 committed by Jiangjie.Bai
parent de2f9ae687
commit c7f8ebb613
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from django.utils.translation import gettext_lazy as _
from django.utils.translation import gettext
from django.template.loader import render_to_string
from notifications.notifications import SystemMessage
@ -19,7 +20,7 @@ class ServerPerformanceMessage(SystemMessage):
self.terms_with_errors = terms_with_errors
def get_html_msg(self) -> dict:
subject = _("Terminal health check warning")
subject = gettext("Terminal health check warning")
context = {
'terms_with_errors': self.terms_with_errors
}