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