| 1 |
========================== |
| 2 |
Django 5.0.2 release notes |
| 3 |
========================== |
| 4 |
|
| 5 |
*February 6, 2024* |
| 6 |
|
| 7 |
Django 5.0.2 fixes a security issue with severity "moderate" and several bugs |
| 8 |
in 5.0.1. Also, the latest string translations from Transifex are incorporated. |
| 9 |
|
| 10 |
CVE-2024-24680: Potential denial-of-service in ``intcomma`` template filter |
| 11 |
=========================================================================== |
| 12 |
|
| 13 |
The ``intcomma`` template filter was subject to a potential denial-of-service |
| 14 |
attack when used with very long strings. |
| 15 |
|
| 16 |
Bugfixes |
| 17 |
======== |
| 18 |
|
| 19 |
* Reallowed, following a regression in Django 5.0.1, filtering against local |
| 20 |
foreign keys not included in :attr:`.ModelAdmin.list_filter` |
| 21 |
(:ticket:`35087`). |
| 22 |
|
| 23 |
* Fixed a regression in Django 5.0 where links in the admin had an incorrect |
| 24 |
color (:ticket:`35121`). |
| 25 |
|
| 26 |
* Fixed a bug in Django 5.0 that caused a crash of ``Model.full_clean()`` on |
| 27 |
models with a ``GeneratedField`` (:ticket:`35127`). |
| 28 |
|
| 29 |
* Fixed a regression in Django 5.0 that caused a crash of |
| 30 |
``FilteredRelation()`` with querysets as right-hand sides (:ticket:`35135`). |
| 31 |
``FilteredRelation()`` now raises a ``ValueError`` on querysets as right-hand |
| 32 |
sides. |
| 33 |
|
| 34 |
* Fixed a regression in Django 5.0 that caused a crash of the ``dumpdata`` |
| 35 |
management command when a base queryset used ``prefetch_related()`` |
| 36 |
(:ticket:`35159`). |
| 37 |
|
| 38 |
* Fixed a regression in Django 5.0 that caused the ``request_finished`` signal to |
| 39 |
sometimes not be fired when running Django through an ASGI server, resulting |
| 40 |
in potential resource leaks (:ticket:`35059`). |
| 41 |
|
| 42 |
* Fixed a bug in Django 5.0 that caused a migration crash on MySQL when adding |
| 43 |
a ``BinaryField``, ``TextField``, ``JSONField``, or ``GeometryField`` with a |
| 44 |
``db_default`` (:ticket:`35162`). |
| 45 |
|
| 46 |
* Fixed a bug in Django 5.0 that caused a migration crash on models with a |
| 47 |
literal ``db_default`` of a complex type such as ``dict`` instance of a |
| 48 |
``JSONField``. Running ``makemigrations`` might generate no-op ``AlterField`` |
| 49 |
operations for fields using ``db_default`` (:ticket:`35149`). |