2.2.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. ============================================
  2. Django 2.2 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. *Expected April 2019*
  5. Welcome to Django 2.2!
  6. These release notes cover the :ref:`new features <whats-new-2.2>`, as well as
  7. some :ref:`backwards incompatible changes <backwards-incompatible-2.2>` you'll
  8. want to be aware of when upgrading from Django 2.1 or earlier. We've
  9. :ref:`begun the deprecation process for some features
  10. <deprecated-features-2.2>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Django 2.2 is designated as a :term:`long-term support release`. It will
  14. receive security updates for at least three years after its release. Support
  15. for the previous LTS, Django 1.11, will end in April 2020.
  16. Python compatibility
  17. ====================
  18. Django 2.2 supports Python 3.5, 3.6, and 3.7. We **highly recommend** and only
  19. officially support the latest release of each series.
  20. .. _whats-new-2.2:
  21. What's new in Django 2.2
  22. ========================
  23. Minor features
  24. --------------
  25. :mod:`django.contrib.admin`
  26. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. * ...
  28. :mod:`django.contrib.admindocs`
  29. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30. * ...
  31. :mod:`django.contrib.auth`
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. * ...
  34. :mod:`django.contrib.contenttypes`
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. * ...
  37. :mod:`django.contrib.gis`
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~
  39. * Added Oracle support for the
  40. :class:`~django.contrib.gis.db.models.functions.Envelope` function.
  41. * Added SpatiaLite support for the :lookup:`coveredby` and :lookup:`covers`
  42. lookups.
  43. :mod:`django.contrib.messages`
  44. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  45. * ...
  46. :mod:`django.contrib.postgres`
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. * The new ``ordering`` argument for
  49. :class:`~django.contrib.postgres.aggregates.ArrayAgg` and
  50. :class:`~django.contrib.postgres.aggregates.StringAgg` determines the
  51. ordering of the aggregated elements.
  52. :mod:`django.contrib.redirects`
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54. * ...
  55. :mod:`django.contrib.sessions`
  56. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. * ...
  58. :mod:`django.contrib.sitemaps`
  59. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. * ...
  61. :mod:`django.contrib.sites`
  62. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. * ...
  64. :mod:`django.contrib.staticfiles`
  65. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  66. * ...
  67. :mod:`django.contrib.syndication`
  68. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  69. * ...
  70. Cache
  71. ~~~~~
  72. * ...
  73. CSRF
  74. ~~~~
  75. * ...
  76. Database backends
  77. ~~~~~~~~~~~~~~~~~
  78. * ...
  79. Email
  80. ~~~~~
  81. * ...
  82. File Storage
  83. ~~~~~~~~~~~~
  84. * ...
  85. File Uploads
  86. ~~~~~~~~~~~~
  87. * ...
  88. Forms
  89. ~~~~~
  90. * ...
  91. Generic Views
  92. ~~~~~~~~~~~~~
  93. * ...
  94. Internationalization
  95. ~~~~~~~~~~~~~~~~~~~~
  96. * ...
  97. Management Commands
  98. ~~~~~~~~~~~~~~~~~~~
  99. * ...
  100. Migrations
  101. ~~~~~~~~~~
  102. * ...
  103. Models
  104. ~~~~~~
  105. * Added support for PostgreSQL operator classes (:attr:`.Index.opclasses`).
  106. * Added many :ref:`math database functions <math-functions>`.
  107. Requests and Responses
  108. ~~~~~~~~~~~~~~~~~~~~~~
  109. * ...
  110. Serialization
  111. ~~~~~~~~~~~~~
  112. * ...
  113. Signals
  114. ~~~~~~~
  115. * ...
  116. Templates
  117. ~~~~~~~~~
  118. * ...
  119. Tests
  120. ~~~~~
  121. * The new :meth:`.SimpleTestCase.assertURLEqual` assertion checks for a given
  122. URL, ignoring the ordering of the query string.
  123. :meth:`~.SimpleTestCase.assertRedirects` uses the new assertion.
  124. URLs
  125. ~~~~
  126. * ...
  127. Validators
  128. ~~~~~~~~~~
  129. * ...
  130. .. _backwards-incompatible-2.2:
  131. Backwards incompatible changes in 2.2
  132. =====================================
  133. Database backend API
  134. --------------------
  135. * ...
  136. :mod:`django.contrib.gis`
  137. -------------------------
  138. * Support for GDAL 1.9 and 1.10 is dropped.
  139. Miscellaneous
  140. -------------
  141. * On SQLite, ``PositiveIntegerField`` and ``PositiveSmallIntegerField`` now
  142. include a check constraint to prevent negative values in the database. If you
  143. have existing invalid data and run a migration that recreates a table, you'll
  144. see ``CHECK constraint failed``.
  145. .. _deprecated-features-2.2:
  146. Features deprecated in 2.2
  147. ==========================
  148. Miscellaneous
  149. -------------
  150. * ...