1.8.3.txt 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ==========================
  2. Django 1.8.3 release notes
  3. ==========================
  4. *Under development*
  5. Django 1.8.3 fixes several bugs in 1.8.2.
  6. Also, ``django.utils.deprecation.RemovedInDjango20Warning`` was renamed to
  7. ``RemovedInDjango110Warning`` as the version roadmap was revised to 1.9, 1.10,
  8. 1.11 (LTS), 2.0 (drops Python 2 support). For backwards compatibility,
  9. ``RemovedInDjango20Warning`` remains as an importable alias.
  10. Bugfixes
  11. ========
  12. * Fixed ``BaseRangeField.prepare_value()`` to use each ``base_field``’s
  13. ``prepare_value()`` method (:ticket:`24841`).
  14. * Fixed crash during :djadmin:`makemigrations` if a migrations module either
  15. is missing ``__init__.py`` or is a file (:ticket:`24848`).
  16. * Fixed ``QuerySet.exists()`` returning incorrect results after annotation with
  17. ``Count()`` (:ticket:`24835`).
  18. * Corrected ``HStoreField.has_changed()`` (:ticket:`24844`).
  19. * Reverted an optimization to the CSRF template context processor which caused
  20. a regression (:ticket:`24836`).
  21. * Fixed a regression which caused template context processors to overwrite
  22. variables set on a ``RequestContext`` after it's created (:ticket:`24847`).
  23. * Prevented the loss of ``null``/``not null`` column properties during field
  24. renaming of MySQL databases (:ticket:`24817`).
  25. * Fixed a crash when using a reverse one-to-one relation in
  26. ``ModelAdmin.list_display`` (:ticket:`24851`).
  27. * Fixed quoting of SQL when renaming a field to ``AutoField`` in PostgreSQL
  28. (:ticket:`24892`).
  29. * Fixed lack of unique constraint when changing a field from
  30. ``primary_key=True`` to ``unique=True`` (:ticket:`24893`).
  31. * Fixed queryset pickling when using ``prefetch_related()`` after deleting
  32. objects (:ticket:`24831`).
  33. * Allowed using ``choices`` longer than 1 day with ``DurationField``
  34. (:ticket:`24897`).
  35. * Fixed a crash when loading squashed migrations from two apps with a
  36. dependency between them, where the dependent app's replaced migrations are
  37. partially applied (:ticket:`24895`).
  38. * Fixed recording of applied status for squashed (replacement) migrations
  39. (:ticket:`24628`).
  40. * Fixed queryset annotations when using ``Case`` expressions with ``exclude()``
  41. (:ticket:`24833`).
  42. * Corrected join promotion for multiple ``Case`` expressions. Annotating a
  43. query with multiple ``Case`` expressions could unexpectedly filter out
  44. results (:ticket:`24924`).
  45. * Fixed usage of transforms in subqueries (:ticket:`24744`).
  46. * Fixed ``SimpleTestCase.assertRaisesMessage()`` on Python 2.7.10
  47. (:ticket:`24903`).
  48. * Provided better backwards compatibility for the ``verbosity`` argument in
  49. ``optparse`` management commands by casting it to an integer
  50. (:ticket:`24769`).
  51. * Fixed ``prefetch_related()`` on databases other than PostgreSQL for models
  52. using UUID primary keys (:ticket:`24912`).
  53. * Fixed removing ``unique_together`` constraints on MySQL (:ticket:`24972`).
  54. * Fixed crash when uploading images with MIME types that Pillow doesn't detect,
  55. such as bitmap, in ``forms.ImageField`` (:ticket:`24948`).
  56. * Fixed a regression when deleting a model through the admin that has a
  57. ``GenericRelation`` with a ``related_query_name`` (:ticket:`24940`).