1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[5.0.x] Fixed #35422 -- Fixed migrations crash when altering GeneratedField referencing rename field.

Thanks Sarah Boyce for the report and Simon Charette for the
implementation idea.

Backport of 91a4b9a8ec from main.
This commit is contained in:
Mariusz Felisiak
2024-05-02 20:31:51 +02:00
committed by Sarah Boyce
parent 24f54c3b09
commit c544f1a223
4 changed files with 73 additions and 6 deletions

View File

@@ -27,3 +27,6 @@ Bugfixes
* Fixed a bug in Django 5.0 that caused a migration crash when a
``GeneratedField`` was added before any of the referenced fields from its
``expression`` definition (:ticket:`35359`).
* Fixed a bug in Django 5.0 that caused a migration crash when altering a
``GeneratedField`` referencing a rename field (:ticket:`35422`).