1:引入日志模块
from simple_history.admin import SimpleHistoryAdmin
2:admin类继承 SimpleHistoryAdmin
3:对应model添加字段历史记录字段
history = HistoricalRecords(excluded_fields=['user', 'create_time', 'update_time'])
1:引入日志模块
from simple_history.admin import SimpleHistoryAdmin
2:admin类继承 SimpleHistoryAdmin
3:对应model添加字段历史记录字段
history = HistoricalRecords(excluded_fields=['user', 'create_time', 'update_time'])