From fea77ce92b31a102f2cb687ca42f171a25c8f3e1 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Thu, 17 May 2018 01:22:05 +0800 Subject: [PATCH] =?UTF-8?q?smtp=E8=B4=A6=E6=88=B7=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E5=AE=9A=E6=98=AF=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/serializers.py b/conf/serializers.py index 50f259c1..e50dfa21 100644 --- a/conf/serializers.py +++ b/conf/serializers.py @@ -6,7 +6,7 @@ from .models import JudgeServer class EditSMTPConfigSerializer(serializers.Serializer): server = serializers.CharField(max_length=128) port = serializers.IntegerField(default=25) - email = serializers.EmailField(max_length=128) + email = serializers.CharField(max_length=256) password = serializers.CharField(max_length=128, required=False, allow_null=True, allow_blank=True) tls = serializers.BooleanField()