From b5a7e30bb37577c193ecb9a3eb96529cd8df47bf Mon Sep 17 00:00:00 2001 From: xiepaup Date: Mon, 25 Nov 2024 11:30:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(redis):=20=E8=87=AA=E6=84=88=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=A4=B1=E8=B4=A5lazy=5F=20#8140?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_services/redis/autofix/bill.py | 2 +- dbm-ui/backend/ticket/builders/redis/redis_toolbox_autofix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbm-ui/backend/db_services/redis/autofix/bill.py b/dbm-ui/backend/db_services/redis/autofix/bill.py index 513e733f50..664f726f12 100644 --- a/dbm-ui/backend/db_services/redis/autofix/bill.py +++ b/dbm-ui/backend/db_services/redis/autofix/bill.py @@ -16,7 +16,7 @@ from django.db.models import QuerySet from django.utils import timezone from django.utils.crypto import get_random_string -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as _ from backend.configuration.constants import DBType from backend.configuration.models.dba import DBAdministrator diff --git a/dbm-ui/backend/ticket/builders/redis/redis_toolbox_autofix.py b/dbm-ui/backend/ticket/builders/redis/redis_toolbox_autofix.py index 88702b9913..1d23bb9dbe 100644 --- a/dbm-ui/backend/ticket/builders/redis/redis_toolbox_autofix.py +++ b/dbm-ui/backend/ticket/builders/redis/redis_toolbox_autofix.py @@ -9,7 +9,7 @@ specific language governing permissions and limitations under the License. """ -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as _ from rest_framework import serializers from backend.db_meta.enums import InstanceRole