mirror of https://github.com/jumpserver/jumpserver
fix: 修复测试邮箱服务器字段为null的问题
parent
6411642ced
commit
6f135c34c1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue