U Deploy表rst_notify字段增加默认值

pull/31/head
zypo 2020-03-11 21:23:12 +08:00
parent 170cc8e2a5
commit e285faf080
2 changed files with 3 additions and 3 deletions

View File

@ -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='+')

View File

@ -82,13 +82,13 @@ class LDAPSetting extends React.Component {
<Form.Item labelCol={{span: 8}} wrapperCol={{span: 16}} required label="LDAP搜索规则">
{getFieldDecorator('rules', {initialValue: this.setting['rules'],
rules: [{required: true, message: '请输入LDAP搜索规则'}]})(
<Input placeholder="请输入,例如cn"/>
<Input placeholder="例如cn"/>
)}
</Form.Item>
<Form.Item labelCol={{span: 8}} wrapperCol={{span: 16}} required label="基本DN">
{getFieldDecorator('base_dn', {initialValue: this.setting['base_dn'],
rules: [{required: true, message: '请输入LDAP基本DN'}]})(
<Input placeholder="请输入,例如dc=spug,dc=dev"/>
<Input placeholder="例如dc=spug,dc=dev"/>
)}
</Form.Item>
<Form.Item>