2019-04-03 06:26:05 +00:00
|
|
|
==========================
|
|
|
|
Django 2.2.1 release notes
|
|
|
|
==========================
|
|
|
|
|
2019-05-01 05:05:47 +00:00
|
|
|
*May 1, 2019*
|
2019-04-03 06:26:05 +00:00
|
|
|
|
|
|
|
Django 2.2.1 fixes several bugs in 2.2.
|
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2019-04-01 23:34:11 +00:00
|
|
|
* Fixed a regression in Django 2.1 that caused the incorrect quoting of
|
|
|
|
database user password when using :djadmin:`dbshell` on Oracle
|
|
|
|
(:ticket:`30307`).
|
2019-04-05 09:05:53 +00:00
|
|
|
|
|
|
|
* Added compatibility for ``psycopg2`` 2.8 (:ticket:`30331`).
|
2019-04-05 12:38:35 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused a crash when loading the
|
|
|
|
template for the technical 500 debug page (:ticket:`30324`).
|
2019-04-06 11:45:22 +00:00
|
|
|
|
|
|
|
* Fixed crash of ``ordering`` argument in
|
|
|
|
:class:`~django.contrib.postgres.aggregates.ArrayAgg` and
|
|
|
|
:class:`~django.contrib.postgres.aggregates.StringAgg` when it contains an
|
|
|
|
expression with params (:ticket:`30332`).
|
2019-04-05 15:52:59 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused a single instance fast-delete
|
|
|
|
to not set the primary key to ``None`` (:ticket:`30330`).
|
2019-04-13 13:03:26 +00:00
|
|
|
|
|
|
|
* Prevented :djadmin:`makemigrations` from generating infinite migrations for
|
|
|
|
check constraints and partial indexes when ``condition`` contains
|
|
|
|
a :class:`~python:range` object (:ticket:`30350`).
|
2019-04-15 08:35:37 +00:00
|
|
|
|
|
|
|
* Reverted an optimization in Django 2.2 (:ticket:`29725`) that caused the
|
|
|
|
inconsistent behavior of ``count()`` and ``exists()`` on a reverse
|
|
|
|
many-to-many relationship with a custom manager (:ticket:`30325`).
|
2019-04-17 06:24:28 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 where
|
2019-04-19 06:27:06 +00:00
|
|
|
:class:`~django.core.paginator.Paginator` crashes if ``object_list`` is
|
2019-04-17 06:24:28 +00:00
|
|
|
a queryset ordered or aggregated over a nested ``JSONField`` key transform
|
|
|
|
(:ticket:`30335`).
|
2019-04-06 04:40:46 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 where ``IntegerField`` validation of
|
|
|
|
database limits crashes if ``limit_value`` attribute in a custom validator is
|
|
|
|
callable (:ticket:`30328`).
|
2019-04-19 06:39:25 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 where
|
|
|
|
:class:`~django.contrib.postgres.search.SearchVector` generates SQL that is
|
|
|
|
not indexable (:ticket:`30385`).
|
2019-04-03 23:17:25 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused an exception to be raised when
|
|
|
|
a custom error handler could not be imported (:ticket:`30318`).
|
2019-04-04 10:02:47 +00:00
|
|
|
|
|
|
|
* Relaxed the system check added in Django 2.2 for the admin app's dependencies
|
|
|
|
to reallow use of
|
|
|
|
:class:`~django.contrib.sessions.middleware.SessionMiddleware` subclasses,
|
|
|
|
rather than requiring :mod:`django.contrib.sessions` to be in
|
|
|
|
:setting:`INSTALLED_APPS` (:ticket:`30312`).
|
2019-04-23 16:08:05 +00:00
|
|
|
|
|
|
|
* Increased the default timeout when using ``Watchman`` to 5 seconds to prevent
|
|
|
|
falling back to ``StatReloader`` on larger projects and made it customizable
|
2020-04-30 10:12:05 +00:00
|
|
|
via the :envvar:`DJANGO_WATCHMAN_TIMEOUT` environment variable
|
|
|
|
(:ticket:`30361`).
|
2019-04-26 06:51:58 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused a crash when migrating
|
|
|
|
permissions for proxy models if the target permissions already existed. For
|
|
|
|
example, when a permission had been created manually or a model had been
|
|
|
|
migrated from concrete to proxy (:ticket:`30351`).
|
2019-04-29 08:22:43 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused a crash of :djadmin:`runserver`
|
|
|
|
when URLConf modules raised exceptions (:ticket:`30323`).
|
2019-04-29 08:44:58 +00:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 where changes were not reliably detected by
|
|
|
|
auto-reloader when using ``StatReloader`` (:ticket:`30323`).
|
2019-04-30 02:49:45 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash on Oracle and PostgreSQL when adding a check
|
|
|
|
constraint with a ``contains``, ``startswith``, or ``endswith`` lookup (or
|
|
|
|
their case-insensitive variant) (:ticket:`30408`).
|
2019-04-30 08:20:41 +00:00
|
|
|
|
|
|
|
* Fixed a migration crash on Oracle and SQLite when adding a check constraint
|
|
|
|
with ``condition`` contains ``|`` (``OR``) operator (:ticket:`30412`).
|