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_NULLdoesn’t return a result (#26991).Allowed
User.is_authenticatedandUser.is_anonymousproperties to be compared using==,!=, and|(#26988, #27154).Removed the broken
BaseCommand.usage()method which was foroptparsesupport (#27000).Fixed a checks framework crash with an empty
Meta.default_permissions(#26997).Fixed a regression in the number of queries when using
RadioSelectwith aModelChoiceFieldform field (#27001).Fixed a crash if
request.META['CONTENT_LENGTH']is an empty string (#27005).Fixed the
isnulllookup on aForeignKeywith itsto_fieldpointing to aCharFieldor pointing to aCharFielddefined withprimary_key=True(#26983).Prevented the
migratecommand from raisingInconsistentMigrationHistoryin the presence of unapplied squashed migrations (#27004).Fixed a regression in
Client.force_login()which required specifying abackendrather than automatically using the first one if multiple backends are configured (#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 (#27026).Fixed crash of
django.views.static.serve()withshow_indexesenabled (#26973).Fixed
ClearableFileInputto avoid therequiredHTML attribute when initial data exists (#27037).Fixed annotations with database functions when combined with lookups on PostGIS (#27014).
Reallowed the
{% for %}tag to unpack any iterable (#27058).Made
makemigrationsskip inconsistent history checks on non-default databases if database routers aren’t in use or if no apps can be migrated to the database (#27054, #27110, #27142).Removed duplicated managers in
Model._meta.managers(#27073).Fixed
contrib.admindocscrash when a view is in a class, such as some of the admin views (#27018).Reverted a few admin checks that checked
field.many_to_manyback toisinstance(field, models.ManyToManyField)since it turned out the checks weren’t suitable to be generalized like that (#26998).Added the database alias to the
InconsistentMigrationHistorymessage raised bymakemigrationsandmigrate(#27089).Fixed the creation of
ContentTypeandPermissionobjects for models of applications without migrations when calling themigratecommand with no migrations to apply (#27044).Included the already applied migration state changes in the
Appsinstance provided to thepre_migratesignal receivers to allowContentTyperenaming to be performed on model rename (#27100).Reallowed subclassing
UserCreationFormwithoutUSERNAME_FIELDinMeta.fields(#27111).Fixed a regression in model forms where model fields with a
defaultthat didn’t appear in POST data no longer used thedefault(#27039).