2020-01-02 15:35:55 +08:00
|
|
|
==========================
|
|
|
|
Django 3.0.3 release notes
|
|
|
|
==========================
|
|
|
|
|
2020-02-03 15:52:16 +08:00
|
|
|
*February 3, 2020*
|
2020-01-02 15:35:55 +08:00
|
|
|
|
2020-01-01 01:46:06 +08:00
|
|
|
Django 3.0.3 fixes a security issue and several bugs in 3.0.2.
|
|
|
|
|
|
|
|
CVE-2020-7471: Potential SQL injection via ``StringAgg(delimiter)``
|
|
|
|
===================================================================
|
|
|
|
|
|
|
|
:class:`~django.contrib.postgres.aggregates.StringAgg` aggregation function was
|
|
|
|
subject to SQL injection, using a suitably crafted ``delimiter``.
|
2020-01-02 15:35:55 +08:00
|
|
|
|
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2020-01-03 00:33:01 +08:00
|
|
|
* Fixed a regression in Django 3.0 that caused a crash when subtracting
|
|
|
|
``DateField``, ``DateTimeField``, or ``TimeField`` from a ``Subquery()``
|
|
|
|
annotation (:ticket:`31133`).
|
2020-01-05 03:49:11 +08:00
|
|
|
|
|
|
|
* Fixed a regression in Django 3.0 where ``QuerySet.values()`` and
|
|
|
|
``values_list()`` crashed if a queryset contained an aggregation and
|
|
|
|
``Exists()`` annotation (:ticket:`31136`).
|
2020-01-08 15:05:43 +08:00
|
|
|
|
|
|
|
* Relaxed the system check added in Django 3.0 to reallow use of a sublanguage
|
|
|
|
in the :setting:`LANGUAGE_CODE` setting, when a base language is available in
|
|
|
|
Django but the sublanguage is not (:ticket:`31141`).
|
2020-01-09 23:41:54 +08:00
|
|
|
|
|
|
|
* Added support for using enumeration types ``TextChoices``,
|
|
|
|
``IntegerChoices``, and ``Choices`` in templates (:ticket:`31154`).
|
2020-01-12 02:47:36 +08:00
|
|
|
|
|
|
|
* Fixed a system check to ensure the ``max_length`` attribute fits the longest
|
|
|
|
choice, when a named group contains only non-string values (:ticket:`31155`).
|
2020-01-14 16:59:23 +08:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2 that caused a crash of
|
|
|
|
:class:`~django.contrib.postgres.aggregates.ArrayAgg` and
|
|
|
|
:class:`~django.contrib.postgres.aggregates.StringAgg` with ``filter``
|
|
|
|
argument when used in a ``Subquery`` (:ticket:`31097`).
|
2020-01-07 18:52:09 +08:00
|
|
|
|
|
|
|
* Fixed a regression in Django 2.2.7 that caused
|
|
|
|
:meth:`~django.db.models.Model.get_FOO_display` to work incorrectly when
|
|
|
|
overriding inherited choices (:ticket:`31124`).
|
2020-01-21 15:12:25 +08:00
|
|
|
|
|
|
|
* Fixed a regression in Django 3.0 that caused a crash of
|
|
|
|
``QuerySet.prefetch_related()`` for ``GenericForeignKey`` with a custom
|
|
|
|
``ContentType`` foreign key (:ticket:`31190`).
|