Django 1.8.6 版本发行说明
Django 1.8.6 adds official support for Python 3.5 and fixes several bugs in 1.8.5.
- Fixed a regression causing to ignore
prefetch_related()
on its queryset (#25496). - Allowed “mode=memory” in SQLite test database name if supported ().
- Fixed system check crash on
ForeignKey
to abstract model (#25503). - Allowed filtering over a
RawSQL
annotation (). - Made the database function idempotent on SQLite (#25517).
- Avoided a confusing stack trace when starting with an invalid INSTALLED_APPS setting (). This regression appeared in 1.8.5 as a side effect of fixing #24704.
- Made deferred models use their proxied model’s
_meta.apps
for caching and retrieval (). This prevents any models generated in data migrations usingQuerySet.defer()
from leaking to test and application code. - Fixed crash with
contrib.postgres.forms.SplitArrayField
and on invalid value (#25597). - Added a helpful error message when Django and South migrations exist in the same directory ().
- Fixed a regression in
URLValidator
that allowed URLs with consecutive dots in the domain section (likehttp://example..com/
) to pass (#25620). - Fixed a crash with
GenericRelation
andBaseModelAdmin.to_field_allowed
().