mirror of https://github.com/openspug/spug
U Deploy表rst_notify字段增加默认值
parent
170cc8e2a5
commit
e285faf080
|
@ -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='+')
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue