diff options
| author | Simon Charette <charette.s@gmail.com> | 2024-04-02 16:33:31 -0400 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2024-04-02 17:34:38 -0300 |
| commit | fead2dd52303505f30007df5e3c198b48b3ce9ae (patch) | |
| tree | 3b4374a6e2371f1e1c0f984e441b481955919d82 /docs | |
| parent | 14ab15d69ab2171ef26b295dcbd561b723b7eb7e (diff) | |
[5.0.x] Fixed #35336 -- Addressed crash when adding a GeneratedField with % literals.
A longer term solution is likely to have a better separation of parametrized
DDL altogether to handle checks, constraints, defaults, and generated fields
but such a change would require a significant refactor that isn't suitable
for a backport.
Thanks Adrian Garcia for the report.
Backport of 888b9042b3598bab6557c62de82505eec9ea62ed from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.0.4.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.0.4.txt b/docs/releases/5.0.4.txt index 6872d5998a..6b922b09c0 100644 --- a/docs/releases/5.0.4.txt +++ b/docs/releases/5.0.4.txt @@ -24,3 +24,7 @@ Bugfixes * Fixed a crash in Django 5.0 when performing queries involving table aliases and lookups on a ``GeneratedField`` of the aliased table (:ticket:`35344`). + +* Fixed a bug in Django 5.0 that caused a migration crash when adding a + ``GeneratedField`` relying on the ``__contains`` or ``__icontains`` + lookups or using a ``Value`` containing a ``"%"`` (:ticket:`35336`). |
