修改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