diff --git a/spug_api/apps/app/models.py b/spug_api/apps/app/models.py index 010314f..25aca33 100644 --- a/spug_api/apps/app/models.py +++ b/spug_api/apps/app/models.py @@ -41,7 +41,7 @@ class Deploy(models.Model, ModelMixin): host_ids = models.TextField() extend = models.CharField(max_length=2, choices=EXTENDS) is_audit = models.BooleanField() - rst_notify = models.CharField(max_length=255) + rst_notify = models.CharField(max_length=255, null=True) created_at = models.CharField(max_length=20, default=human_datetime) created_by = models.ForeignKey(User, models.PROTECT, related_name='+') diff --git a/spug_web/src/pages/system/setting/LDAPSetting.js b/spug_web/src/pages/system/setting/LDAPSetting.js index 42956bf..b8c07a0 100644 --- a/spug_web/src/pages/system/setting/LDAPSetting.js +++ b/spug_web/src/pages/system/setting/LDAPSetting.js @@ -82,13 +82,13 @@ class LDAPSetting extends React.Component { {getFieldDecorator('rules', {initialValue: this.setting['rules'], rules: [{required: true, message: '请输入LDAP搜索规则'}]})( - + )} {getFieldDecorator('base_dn', {initialValue: this.setting['base_dn'], rules: [{required: true, message: '请输入LDAP基本DN'}]})( - + )}