Fixed #35422 -- Fixed migrations crash when altering GeneratedField referencing rename field.

Thanks Sarah Boyce for the report and Simon Charette for the
implementation idea.
This commit is contained in:
Mariusz Felisiak 2024-05-02 20:31:51 +02:00 committed by Sarah Boyce
parent 9aeb38c296
commit 91a4b9a8ec
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`).