Django 1.10.1 release notes — Django documentation
From Get docs
Django/docs/3.1.x/releases/1.10.1
Django 1.10.1 release notes
September 1, 2016
Django 1.10.1 fixes several bugs in 1.10.
Bugfixes
- Fixed a crash in MySQL connections where
SELECT @@SQL_AUTO_IS_NULL
doesn’t return a result (:ticket:`26991`). - Allowed
User.is_authenticated
andUser.is_anonymous
properties to be compared using==
,!=
, and|
(:ticket:`26988`, :ticket:`27154`). - Removed the broken
BaseCommand.usage()
method which was foroptparse
support (:ticket:`27000`). - Fixed a checks framework crash with an empty
Meta.default_permissions
(:ticket:`26997`). - Fixed a regression in the number of queries when using
RadioSelect
with aModelChoiceField
form field (:ticket:`27001`). - Fixed a crash if
request.META['CONTENT_LENGTH']
is an empty string (:ticket:`27005`). - Fixed the
isnull
lookup on aForeignKey
with itsto_field
pointing to aCharField
or pointing to aCharField
defined withprimary_key=True
(:ticket:`26983`). - Prevented the
migrate
command from raisingInconsistentMigrationHistory
in the presence of unapplied squashed migrations (:ticket:`27004`). - Fixed a regression in
Client.force_login()
which required specifying abackend
rather than automatically using the first one if multiple backends are configured (:ticket:`27027`). - 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`). - Fixed crash of
django.views.static.serve()
withshow_indexes
enabled (:ticket:`26973`). - Fixed
ClearableFileInput
to avoid therequired
HTML attribute when initial data exists (:ticket:`27037`). - Fixed annotations with database functions when combined with lookups on PostGIS (:ticket:`27014`).
- Reallowed the
{% for %}
tag to unpack any iterable (:ticket:`27058`). - 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`). - Removed duplicated managers in
Model._meta.managers
(:ticket:`27073`). - Fixed
contrib.admindocs
crash when a view is in a class, such as some of the admin views (:ticket:`27018`). - Reverted a few admin checks that checked
field.many_to_many
back toisinstance(field, models.ManyToManyField)
since it turned out the checks weren’t suitable to be generalized like that (:ticket:`26998`). - Added the database alias to the
InconsistentMigrationHistory
message raised bymakemigrations
andmigrate
(:ticket:`27089`). - Fixed the creation of
ContentType
andPermission
objects for models of applications without migrations when calling themigrate
command with no migrations to apply (:ticket:`27044`). - Included the already applied migration state changes in the
Apps
instance provided to thepre_migrate
signal receivers to allowContentType
renaming to be performed on model rename (:ticket:`27100`). - Reallowed subclassing
UserCreationForm
withoutUSERNAME_FIELD
inMeta.fields
(:ticket:`27111`). - Fixed a regression in model forms where model fields with a
default
that didn’t appear in POST data no longer used thedefault
(:ticket:`27039`).