修改models.py 中对应的classpython
在admin.py 中 增长 admin.site.register(WafDevice)shell
进入dbshellit
python manage.py dbshelltable
看一下数据表:class
.tablemodel
.dump resource_hostdevice数据
手动修改对应的数据表:db
alter table resource_wafdevice add column 'mark_number' varchar(100) not null default 'nsfocus';tab