SAE zinnia 0.13升级0.15.2

1. 备份数据库,然后执行MySQL数据库表变更,SQL如下:

ALTER TABLE `zinnia_entry`
     ADD COLUMN `image_caption` LONGTEXT NULL AFTER `detail_template`,
     ADD COLUMN `lead` LONGTEXT NULL AFTER `image_caption`,
     ADD COLUMN `publication_date` DATETIME NULL AFTER `lead`;

ALTER TABLE `zinnia_entry` ADD INDEX `zinnia_entry_slug_4505cfe2_idx` (`slug`, `publication_date`);

ALTER TABLE `zinnia_entry` ADD INDEX `zinnia_entry_93b83098` (`publication_date`);

ALTER TABLE `zinnia_entry` ADD INDEX `zinnia_entry_status_42b2ce24_idx` (`status`, `start_publication`, `end_publication`, `publication_date`);

2. 覆盖代码,将Django版本升级至1.8

3. 修复可能因Django版本升级而导致的views与templates中的语法错误

附zinnia 0.15.2 ChangeLog

Covering of the code at 100% 代码覆盖率100%
Compatibility with Django 1.8 兼容Django 1.8
Improvements on the Calendar 日历优化
Improvements on ``CategoryFeed`` ``CategoryFeed``优化
Improvements on ``Entry.save()`` ``Entry.save()``优化
Improvements on ping of external URLs 外部URL ping优化
Improvements on the comparison module 比较模块优化
Improvements on the translation strings 翻译字符串优化
The default theme is now in HTML5 默认主题为HTML5
The default theme supports Microdatas 默认主题支持Microdata
Add a ``lead`` field on the Entry model 在Entry模型新增``lead``字段
Add an ``image_caption`` field on the Entry model 在Entry模型新增``image_caption``字段
Fix preview of entries when not yet published 修复未发布文章的预览功能
Fix migrations when using custom ``User`` model 修复自定义``User``模型的迁移功能
More generic parameter for MarkDown extensions 更加通用的MarkDown扩展参数
Import utilies were moved to their own package 导入工具移动至其各自的包下
The fields where the search is done are now configurable 搜索字段可配置

 

本文链接:http://bookshadow.com/weblog/2015/09/30/sae-zinnia-013-015/
请尊重作者的劳动成果,转载请注明出处!书影博客保留对文章的所有权利。

如果您喜欢这篇博文,欢迎您捐赠书影博客: ,查看支付宝二维码