From c7f8ebb6135303099f52a203573d473055feda35 Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 16 Feb 2022 20:07:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=AB=99=E5=86=85=E4=BF=A1=20ServerPerf?= =?UTF-8?q?ormanceCheck=20redis=20=E8=AE=A2=E9=98=85=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ops/notifications.py b/apps/ops/notifications.py index 442a81cf6..b34b00e1f 100644 --- a/apps/ops/notifications.py +++ b/apps/ops/notifications.py @@ -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 }