| 1 |
========================== |
| 2 |
Django 5.0.5 release notes |
| 3 |
========================== |
| 4 |
|
| 5 |
*May 6, 2024* |
| 6 |
|
| 7 |
Django 5.0.5 fixes several bugs in 5.0.4. |
| 8 |
|
| 9 |
Bugfixes |
| 10 |
======== |
| 11 |
|
| 12 |
* Fixed a bug in Django 5.0 that caused a crash of ``Model.save()`` when |
| 13 |
creating an instance of a model with a ``GeneratedField`` and providing a |
| 14 |
primary key (:ticket:`35350`). |
| 15 |
|
| 16 |
* Fixed a compatibility issue encountered in Python 3.11.9+ and 3.12.3+ when |
| 17 |
validating email max line lengths with content decoded using the |
| 18 |
``surrogateescape`` error handling scheme (:ticket:`35361`). |
| 19 |
|
| 20 |
* Fixed a bug in Django 5.0 that caused a crash when applying migrations |
| 21 |
including alterations to ``GeneratedField`` such as setting ``db_index=True`` |
| 22 |
on SQLite (:ticket:`35373`). |
| 23 |
|
| 24 |
* Allowed importing ``aprefetch_related_objects`` from ``django.db.models`` |
| 25 |
(:ticket:`35392`). |
| 26 |
|
| 27 |
* Fixed a bug in Django 5.0 that caused a migration crash when a |
| 28 |
``GeneratedField`` was added before any of the referenced fields from its |
| 29 |
``expression`` definition (:ticket:`35359`). |
| 30 |
|
| 31 |
* Fixed a bug in Django 5.0 that caused a migration crash when altering a |
| 32 |
``GeneratedField`` referencing a renamed field (:ticket:`35422`). |
| 33 |
|
| 34 |
* Fixed a bug in Django 5.0 where the ``querysets`` argument of |
| 35 |
``GenericPrefetch`` was not required (:ticket:`35426`). |