From a98816462f0a1ea3a952fe6732a75b7d6a84ac32 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 28 Oct 2020 14:11:27 +0800 Subject: [PATCH] =?UTF-8?q?perf(applications):=20=E6=B7=BB=E5=8A=A0DB?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E7=B1=BB=E5=AD=97=E6=AE=B5=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/serializers/database_app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/applications/serializers/database_app.py b/apps/applications/serializers/database_app.py index ac460ad8d..e14ec0ef6 100644 --- a/apps/applications/serializers/database_app.py +++ b/apps/applications/serializers/database_app.py @@ -10,9 +10,9 @@ from .. import models class DatabaseCategorySerializer(serializers.Serializer): - host = serializers.CharField() - port = serializers.IntegerField() - database = serializers.CharField(allow_blank=True, allow_null=True) + host = serializers.CharField(label=_('Host')) + port = serializers.IntegerField(label=_('Port')) + database = serializers.CharField(allow_blank=True, allow_null=True, label=_('Database')) class DatabaseAttrsSerializer(DatabaseCategorySerializer): @@ -24,11 +24,11 @@ class MySQLAttrsSerializer(DatabaseAttrsSerializer): class PostgreAttrsSerializer(DatabaseAttrsSerializer): - port = serializers.IntegerField(default=5432) + port = serializers.IntegerField(default=5432, label=_('Port')) class OracleAttrsSerializer(DatabaseAttrsSerializer): - port = serializers.IntegerField(default=1521) + port = serializers.IntegerField(default=1521, label=_('Port')) class MariaDBAttrsSerializer(MySQLAttrsSerializer):