Django 1.8.7 版本发行说明
漏洞修复
- Fixed a crash of the debug view during the autumn DST change when is
False
and is installed. - Fixed a regression in 1.8.6 that caused database routers without an
allow_migrate()
method to crash (#25686). - Fixed a regression in 1.8.6 that caused an application with South migrations in the
migrations
directory to fail (). - Fixed a data loss possibility with Prefetch if
to_attr
is set to aManyToManyField
(). - Fixed a regression in 1.8 by making
gettext()
once again return UTF-8 bytestrings on Python 2 if the input is a bytestring (#25720). - Fixed serialization of and DateTimeRangeField ().
- Fixed
Model.refresh_from_db()
updating ofForeignKey
fields withon_delete=models.SET_NULL
(#25715). - Fixed a duplicate query regression in 1.8 on proxied model deletion ().
- Fixed
set_FOO_order()
crash when theForeignKey
of a model withorder_with_respect_to
references a model with aOneToOneField
primary key (#25786). - Fixed incorrect validation for
PositiveIntegerField
and on MySQL resulting in values greater than 4294967295 or 65535, respectively, passing validation and being silently truncated by the database ().