1
0
mirror of https://github.com/django/django.git synced 2025-01-15 12:52:31 +00:00
django/docs/releases/5.0.5.txt
Simon Charette 9d79714e25 [5.0.x] Fixed #35373 -- Fixed a crash when indexing a generated field on SQLite.
Generated fields have to be excluded from the INSERT query against the remade
table including the index.

Thanks Moshe Dicker for the report, David Sanders and Mariusz Felisiak for the
review.

Backport of d048f0d311cc9cb9578d687968f2d24a0a9efddb from main.
2024-04-16 17:31:22 +02:00

23 lines
743 B
Plaintext

==========================
Django 5.0.5 release notes
==========================
*Expected May 6, 2024*
Django 5.0.5 fixes several bugs in 5.0.4.
Bugfixes
========
* Fixed a bug in Django 5.0 that caused a crash of ``Model.save()`` when
creating an instance of a model with a ``GeneratedField`` and providing a
primary key (:ticket:`35350`).
* Fixed a compatibility issue encountered in Python 3.11.9+ and 3.12.3+ when
validating email max line lengths with content decoded using the
``surrogateescape`` error handling scheme (:ticket:`35361`).
* Fixed a bug in Django 5.0 that caused a crash when applying migrations
including alterations to ``GeneratedField`` such as setting ``db_index=True``
on SQLite (:ticket:`35373`).