2016-08-01 20:57:10 +02:00
|
|
|
===========================
|
|
|
|
Django 1.10.1 release notes
|
|
|
|
===========================
|
|
|
|
|
2016-09-01 22:24:46 +02:00
|
|
|
*September 1, 2016*
|
2016-08-01 20:57:10 +02:00
|
|
|
|
|
|
|
Django 1.10.1 fixes several bugs in 1.10.
|
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2016-08-02 16:52:31 +02:00
|
|
|
* Fixed a crash in MySQL connections where ``SELECT @@SQL_AUTO_IS_NULL``
|
|
|
|
doesn't return a result (:ticket:`26991`).
|
2016-08-02 15:32:00 +02:00
|
|
|
|
|
|
|
* Allowed ``User.is_authenticated`` and ``User.is_anonymous`` properties to be
|
2016-08-31 10:07:30 +02:00
|
|
|
compared using ``==``, ``!=``, and ``|`` (:ticket:`26988`, :ticket:`27154`).
|
2016-08-03 00:50:12 +02:00
|
|
|
|
|
|
|
* Removed the broken ``BaseCommand.usage()`` method which was for
|
|
|
|
``optparse`` support (:ticket:`27000`).
|
2016-08-02 21:19:01 +02:00
|
|
|
|
|
|
|
* Fixed a checks framework crash with an empty ``Meta.default_permissions``
|
|
|
|
(:ticket:`26997`).
|
2016-08-03 05:12:06 +02:00
|
|
|
|
|
|
|
* Fixed a regression in the number of queries when using ``RadioSelect`` with a
|
|
|
|
``ModelChoiceField`` form field (:ticket:`27001`).
|
2016-08-03 18:46:57 +02:00
|
|
|
|
|
|
|
* Fixed a crash if ``request.META['CONTENT_LENGTH']`` is an empty string
|
|
|
|
(:ticket:`27005`).
|
2016-08-02 17:27:45 +02:00
|
|
|
|
|
|
|
* Fixed the ``isnull`` lookup on a ``ForeignKey`` with its ``to_field``
|
2016-08-17 22:09:50 +02:00
|
|
|
pointing to a ``CharField`` or pointing to a ``CharField`` defined with
|
|
|
|
``primary_key=True`` (:ticket:`26983`).
|
2016-08-05 01:37:42 +02:00
|
|
|
|
|
|
|
* Prevented the ``migrate`` command from raising
|
|
|
|
``InconsistentMigrationHistory`` in the presence of unapplied squashed
|
|
|
|
migrations (:ticket:`27004`).
|
2016-08-06 02:18:12 +02:00
|
|
|
|
|
|
|
* Fixed a regression in ``Client.force_login()`` which required specifying a
|
|
|
|
``backend`` rather than automatically using the first one if multiple
|
|
|
|
backends are configured (:ticket:`27027`).
|
2016-08-05 23:57:55 +02:00
|
|
|
|
|
|
|
* Made ``QuerySet.bulk_create()`` properly initialize model instances on
|
|
|
|
backends, such as PostgreSQL, that support returning the IDs of the created
|
|
|
|
records so that many-to-many relationships can be used on the new objects
|
|
|
|
(:ticket:`27026`).
|
2016-08-10 17:27:03 +02:00
|
|
|
|
|
|
|
* Fixed crash of ``django.views.static.serve()`` with ``show_indexes`` enabled
|
|
|
|
(:ticket:`26973`).
|
2016-08-12 19:59:01 +02:00
|
|
|
|
|
|
|
* Fixed ``ClearableFileInput`` to avoid the ``required`` HTML attribute when
|
|
|
|
initial data exists (:ticket:`27037`).
|
2016-08-15 19:18:48 +02:00
|
|
|
|
|
|
|
* Fixed annotations with database functions when combined with lookups on
|
|
|
|
PostGIS (:ticket:`27014`).
|
2016-08-15 21:39:22 +02:00
|
|
|
|
|
|
|
* Reallowed the ``{% for %}`` tag to unpack any iterable (:ticket:`27058`).
|
2016-08-13 11:33:58 +02:00
|
|
|
|
2016-09-01 22:19:29 +02:00
|
|
|
* Made ``makemigrations`` skip inconsistent history checks on non-default
|
|
|
|
databases if database routers aren't in use or if no apps can be migrated
|
|
|
|
to the database (:ticket:`27054`, :ticket:`27110`, :ticket:`27142`).
|
2016-08-18 20:24:45 +02:00
|
|
|
|
|
|
|
* Removed duplicated managers in ``Model._meta.managers`` (:ticket:`27073`).
|
2016-08-12 20:07:24 +02:00
|
|
|
|
|
|
|
* Fixed ``contrib.admindocs`` crash when a view is in a class, such as some of
|
|
|
|
the admin views (:ticket:`27018`).
|
2016-08-18 18:45:27 +02:00
|
|
|
|
|
|
|
* Reverted a few admin checks that checked ``field.many_to_many`` back to
|
|
|
|
``isinstance(field, models.ManyToManyField)`` since it turned out the checks
|
|
|
|
weren't suitable to be generalized like that (:ticket:`26998`).
|
2016-08-19 00:17:01 +02:00
|
|
|
|
|
|
|
* Added the database alias to the ``InconsistentMigrationHistory`` message
|
|
|
|
raised by ``makemigrations`` and ``migrate`` (:ticket:`27089`).
|
2016-08-20 22:34:06 +02:00
|
|
|
|
|
|
|
* Fixed the creation of ``ContentType`` and ``Permission`` objects for models
|
|
|
|
of applications without migrations when calling the ``migrate`` command with
|
|
|
|
no migrations to apply (:ticket:`27044`).
|
2016-08-21 00:05:04 +02:00
|
|
|
|
|
|
|
* Included the already applied migration state changes in the ``Apps`` instance
|
|
|
|
provided to the ``pre_migrate`` signal receivers to allow ``ContentType``
|
|
|
|
renaming to be performed on model rename (:ticket:`27100`).
|
2016-08-24 19:20:12 +02:00
|
|
|
|
|
|
|
* Reallowed subclassing ``UserCreationForm`` without ``USERNAME_FIELD`` in
|
|
|
|
``Meta.fields`` (:ticket:`27111`).
|
2016-08-11 21:18:48 +02:00
|
|
|
|
|
|
|
* Fixed a regression in model forms where model fields with a ``default`` that
|
|
|
|
didn't appear in POST data no longer used the ``default`` (:ticket:`27039`).
|