perf(applications): 添加DB序列类字段翻译

pull/4886/head
Bai 2020-10-28 14:11:27 +08:00 committed by 老广
parent abe32e6c79
commit a98816462f
1 changed files with 5 additions and 5 deletions

View File

@ -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):