Django 1.10.1 release notes
Django 1.10.1 fixes several bugs in 1.10.
- Fixed a crash in MySQL connections where doesn’t return a result ().
- Allowed
User.is_authenticated
andUser.is_anonymous
properties to be compared using==
,!=
, and|
(#26988, ). - Removed the broken
BaseCommand.usage()
method which was foroptparse
support (#27000). - Fixed a checks framework crash with an empty
Meta.default_permissions
(). - Fixed a regression in the number of queries when using
RadioSelect
with aModelChoiceField
form field (#27001). - Fixed a crash if
request.META['CONTENT_LENGTH']
is an empty string (). - Prevented the
migrate
command from raisingInconsistentMigrationHistory
in the presence of unapplied squashed migrations (#27004). - Fixed a regression in
Client.force_login()
which required specifying abackend
rather than automatically using the first one if multiple backends are configured (). - 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_indexes
enabled (). - Fixed
ClearableFileInput
to avoid therequired
HTML attribute when initial data exists (#27037). - Fixed annotations with database functions when combined with lookups on PostGIS ().
- Reallowed the
{% for %}
tag to unpack any iterable (#27058). - Removed duplicated managers in
Model._meta.managers
(). - Fixed crash 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_many
back toisinstance(field, models.ManyToManyField)
since it turned out the checks weren’t suitable to be generalized like that (). - Added the database alias to the
InconsistentMigrationHistory
message raised bymakemigrations
andmigrate
(#27089). - Fixed the creation of
ContentType
andPermission
objects for models of applications without migrations when calling themigrate
command with no migrations to apply (). - 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 (#27100). - Reallowed subclassing
UserCreationForm
withoutUSERNAME_FIELD
inMeta.fields
().