Django 1.8.1/1.7.8 发布,BUG 修复版本 - 开源中国社区
Float_left Icon_close
Django 1.8.1/1.7.8 发布,BUG 修复版本
oschina 2015年05月03日

Django 1.8.1/1.7.8 发布,BUG 修复版本

oschina oschina 发布于2015年05月03日 收藏 7 评论 7

阿里云高性能云服务器,2折起! >>> >>>  

Django 今天发布了两个 bug 修复版本 Django 1.8.1 和 Django 1.7.8。

Django 1.8.1 修复了 1.8 的一些 bugs,同时优化了迁移框架:

Bug 修复

  • Added support for serializing timedelta objects in migrations (#24566).

  • Restored proper parsing of the testserver command’s positional arguments (fixture names) (#24571).

  • Prevented TypeError in translation functions check_for_language() andget_language_bidi() when translations are deactivated (#24569).

  • Fixed squashmigrations command when usingSeparateDatabaseAndState(#24278).

  • Stripped microseconds from datetime values when using an older version of the MySQLdb DB API driver as it does not support fractional seconds (#24584).

  • Fixed a migration crash when alteringManyToManyFields (#24513).

  • Fixed a crash with QuerySet.update() on foreign keys to one-to-one fields (#24578).

  • Fixed a regression in the model detail view ofadmindocs when a model has a reverse foreign key relation (#24624).

  • Prevented arbitrary file inclusions in admindocs(#24625).

  • Fixed a crash with QuerySet.update() on foreign keys to instances withuuid primary keys (#24611).

  • Fixed database introspection with SQLite 3.8.9 (released April 8, 2015) (#24637).

  • Updated urlpatterns examples generated by startproject to remove usage of referencing views by dotted path inurl() which is deprecated in Django 1.8 (#24635).

  • Fixed queries where an expression was referenced in order_by(), but wasn’t part of the select clause. An example query isqs.annotate(foo=F('field')).values('pk').order_by('foo')) (#24615).

  • Fixed a database table name quoting regression (#24605).

  • Prevented the loss of null/not null column properties during field alteration of MySQL databases (#24595).

  • Fixed JavaScript path of contrib.admin’s related field widget when using alternate static file storages (#24655).

  • Fixed a migration crash when adding new relations to models (#24573).

  • Fixed a migration crash when applying migrations with model managers on Python 3 that were generated on Python 2 (#24701).

  • Restored the ability to use iterators as queryset filter arguments (#24719).

  • Fixed a migration crash when renaming the target model of a many-to-many relation (#24725).

  • Removed flushing of the test database with --keepdb, which prevented apps with data migrations from using the option (#24729).

  • Fixed makemessages crash in some locales (#23271).

  • Fixed help text positioning of contrib.admin fields that use theModelAdmin.filter_horizontal and filter_vertical options (#24676).

  • FixedAttributeError: function ‘GDALAllRegister’ not founderror when initializing contrib.gis on Windows.

优化

  • Changed ModelState to deepcopy fields instead of deconstructing and reconstructing (#24591). This speeds up the rendering of model states and reduces memory usage when running manage.py migrate.

Django 1.7.8 主要是 bug 修复:

  • Database introspection with SQLite 3.8.9 (released April 8, 2015) (#24637).

  • A database table name quoting regression in 1.7.2 (#24605).

  • The loss of null/not null column properties during field alteration of MySQL databases (#24595).

完整改进请看:

两个版本都已提供下载:

Django 是 Python 编程语言驱动的一个开源模型-视图-控制器(MVC)风格的 Web 应用程序框架。使用 Django,我们在几分钟之内就可以创建高品质、易维护、数据库驱动的应用程序。

Django 框架的核心组件有:

  • 用于创建模型的对象关系映射

  • 为最终用户设计的完美管理界面

  • 一流的 URL 设计

  • 设计者友好的模板语言

  • 缓存系统

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:Django 1.8.1/1.7.8 发布,BUG 修复版本
分享
评论(7)
最新评论
0

引用来自“妹子说名字长丁丁长”的评论

eechen还有10秒到达战场
确实没必要这样,虽然都不认识,这溜人太多太多是贴吧行为,什么语言都有缺陷,说说问题没必要记恨这些,现实中有本事去一个公司干跑对方才是王道
0
怎么现在好多喷的啊
0

引用来自“妹子说名字长丁丁长”的评论

eechen还有10秒到达战场
突然发现它没什么不喷的
0
#3 @gg你和eechen是一伙的吗,你和你的主子差不到哪去。
0

引用来自“妹子说名字长丁丁长”的评论

eechen还有10秒到达战场
QNMB!有意思吗?
0
没见过管理界面
0
eechen还有10秒到达战场
顶部