2016-01-02 14:06:13 +00:00
|
|
|
==========================
|
|
|
|
Django 1.9.2 release notes
|
|
|
|
==========================
|
|
|
|
|
|
|
|
*Under development*
|
|
|
|
|
2016-01-24 09:06:01 +00:00
|
|
|
Django 1.9.2 fixes several bugs in 1.9.1 and makes a small backwards
|
|
|
|
incompatible change that hopefully doesn't affect any users.
|
|
|
|
|
|
|
|
Backwards incompatible change: ``.py-tpl`` files rewritten in project/app templates
|
|
|
|
===================================================================================
|
|
|
|
|
|
|
|
The addition of some Django template language syntax to the default app
|
|
|
|
template in Django 1.9 means those files now have some invalid Python syntax.
|
|
|
|
This causes difficulties for packaging systems that unconditionally
|
|
|
|
byte-compile ``*.py`` files.
|
|
|
|
|
|
|
|
To remedy this, a ``.py-tpl`` suffix is now used for the project and app
|
|
|
|
template files included in Django. The ``.py-tpl`` suffix is replaced with
|
|
|
|
``.py`` by the ``startproject`` and ``startapp`` commands. For example, a
|
|
|
|
template with the filename ``manage.py-tpl`` will be created as ``manage.py``.
|
|
|
|
|
|
|
|
Please file a ticket if you have a custom project template containing
|
|
|
|
``.py-tpl`` files and find this behavior problematic.
|
2016-01-02 14:06:13 +00:00
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2016-01-06 17:33:29 +00:00
|
|
|
* Fixed a regression in ``ConditionalGetMiddleware`` causing ``If-None-Match``
|
|
|
|
checks to always return HTTP 200 (:ticket:`26024`).
|
2016-01-05 11:29:09 +00:00
|
|
|
|
|
|
|
* Fixed a regression that caused the "user-tools" items to display on the
|
|
|
|
admin's logout page (:ticket:`26035`).
|
2016-01-06 17:33:29 +00:00
|
|
|
|
|
|
|
* Fixed a crash in the translations system when the current language has no
|
|
|
|
translations (:ticket:`26046`).
|
2015-12-26 23:32:28 +00:00
|
|
|
|
|
|
|
* Fixed a regression that caused the incorrect day to be selected when opening
|
|
|
|
the admin calendar widget for timezones from GMT+0100 to GMT+1200
|
|
|
|
(:ticket:`24980`).
|
2016-01-07 09:07:15 +00:00
|
|
|
|
|
|
|
* Fixed a regression in the admin's edit related model popup that caused an
|
|
|
|
escaped value to be displayed in the select dropdown of the parent window
|
|
|
|
(:ticket:`25997`).
|
2016-01-08 01:06:58 +00:00
|
|
|
|
2016-01-25 13:35:58 +00:00
|
|
|
* Fixed a regression in 1.8.8 causing incorrect index handling in migrations on
|
|
|
|
PostgreSQL when adding ``db_index=True`` or ``unique=True`` to a
|
|
|
|
``CharField`` or ``TextField`` that already had the other specified, or when
|
|
|
|
removing one of them from a field that had both, or when adding
|
|
|
|
``unique=True`` to a field already listed in ``unique_together``
|
|
|
|
(:ticket:`26034`).
|
2016-01-09 23:05:57 +00:00
|
|
|
|
|
|
|
* Fixed a regression where defining a relation on an abstract model's field
|
|
|
|
using a string model name without an app_label no longer resolved that
|
|
|
|
reference to the abstract model's app if using that model in another
|
2016-01-19 12:35:48 +00:00
|
|
|
application (:ticket:`25858`).
|
|
|
|
|
|
|
|
* Fixed a crash when destroying an existing test database on MySQL or
|
|
|
|
PostgreSQL (:ticket:`26096`).
|
2016-01-18 14:04:41 +00:00
|
|
|
|
|
|
|
* Fixed CSRF cookie check on POST requests when ``USE_X_FORWARDED_PORT=True``
|
|
|
|
(:ticket:`26094`).
|
2016-01-20 09:05:48 +00:00
|
|
|
|
|
|
|
* Fixed a ``QuerySet.order_by()`` crash when ordering by a relational field of
|
|
|
|
a ``ManyToManyField`` ``through`` model (:ticket:`26092`).
|
2016-01-09 20:30:19 +00:00
|
|
|
|
|
|
|
* Fixed a regression that caused an exception when making database queries on
|
|
|
|
SQLite with more than 2000 parameters when :setting:`DEBUG` is ``True`` on
|
|
|
|
distributions that increase the ``SQLITE_MAX_VARIABLE_NUMBER`` compile-time
|
|
|
|
limit to over 2000, such as Debian (:ticket:`26063`).
|
2016-01-09 20:15:21 +00:00
|
|
|
|
|
|
|
* Fixed a crash when using a reverse ``OneToOneField`` in
|
|
|
|
``ModelAdmin.readonly_fields`` (:ticket:`26060`).
|
2016-01-25 19:27:35 +00:00
|
|
|
|
|
|
|
* Fixed a crash when calling the ``migrate`` command in a test case with the
|
|
|
|
``available_apps`` attribute pointing to an application with migrations
|
|
|
|
disabled using the ``MIGRATION_MODULES`` setting (:ticket:`26135`).
|