Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jly8866 committed Mar 17, 2017
1 parent f40652d commit b2929c2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sql/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class master_configAdmin(admin.ModelAdmin):

class workflowAdmin(admin.ModelAdmin):
list_display = ('id','workflow_name', 'engineer', 'review_man', 'create_time', 'finish_time', 'status', 'is_backup', 'review_content', 'cluster_name', 'reviewok_time', 'sql_content', 'execute_result')
search_fields = ['id','workflow_name', 'engineer', 'review_man', 'create_time', 'finish_time', 'status', 'is_backup', 'review_content', 'cluster_name', 'reviewok_time', 'sql_content', 'execute_result']
search_fields = ['id','workflow_name', 'engineer', 'review_man', 'sql_content']

#创建用户表单重新定义,继承自UserCreationForm
class usersCreationForm(UserCreationForm):
Expand Down
32 changes: 32 additions & 0 deletions sql/migrations/0002_auto_20170317_1627.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sql', '0001_initial'),
]

operations = [
migrations.AlterModelOptions(
name='master_config',
options={'verbose_name': '主库地址', 'verbose_name_plural': '主库地址'},
),
migrations.AlterModelOptions(
name='workflow',
options={'verbose_name': '工单管理', 'verbose_name_plural': '工单管理'},
),
migrations.AlterField(
model_name='master_config',
name='master_password',
field=models.CharField(verbose_name='登录主库的密码', max_length=300),
),
migrations.AlterField(
model_name='master_config',
name='master_user',
field=models.CharField(verbose_name='登录主库的用户名', max_length=100),
),
]
4 changes: 2 additions & 2 deletions sql/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class master_config(models.Model):
cluster_name = models.CharField('集群名称', max_length=50)
master_host = models.CharField('主库地址', max_length=200)
master_port = models.IntegerField('主库端口', default=3306)
master_user = models.CharField('登录主库的用户名', max_length=50)
master_password = models.CharField('登录主库的密码', max_length=50)
master_user = models.CharField('登录主库的用户名', max_length=100)
master_password = models.CharField('登录主库的密码', max_length=300)
create_time = models.DateTimeField('创建时间', auto_now_add=True)
update_time = models.DateTimeField('更新时间', auto_now=True)

Expand Down

0 comments on commit b2929c2

Please sign in to comment.