fix: 修复测试邮箱服务器字段为null的问题

pull/9059/head^2
Jiangjie.Bai 2022-11-14 16:19:00 +08:00
parent 6411642ced
commit 6f135c34c1
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ __all__ = ['MailTestSerializer', 'EmailSettingSerializer', 'EmailContentSettingS
class MailTestSerializer(serializers.Serializer):
EMAIL_FROM = serializers.CharField(required=False, allow_blank=True)
EMAIL_RECIPIENT = serializers.CharField(required=False, allow_blank=True)
EMAIL_FROM = serializers.CharField(required=False, allow_null=True, allow_blank=True)
EMAIL_RECIPIENT = serializers.CharField(required=False, allow_null=True, allow_blank=True)
class EmailSettingSerializer(serializers.Serializer):