[4.0.x] Fixed #33480 -- Fixed makemigrations crash when renaming field of renamed model.

Regression in aa4acc164d.

Backport of 97a7274468 from main
This commit is contained in:
Kirill Safronov 2022-02-01 00:29:49 +05:00 committed by Mariusz Felisiak
parent aff79be03a
commit 6928227dff
3 changed files with 24 additions and 1 deletions

View file

@ -37,3 +37,6 @@ Bugfixes
* Fixed a bug in Django 4.0 that caused a crash of ``QuerySet.aggregate()``
after ``annotate()`` on an aggregate function with a
:ref:`default <aggregate-default>` (:ticket:`33468`).
* Fixed a regression in Django 4.0 that caused a crash of ``makemigrations``
when renaming a field of a renamed model (:ticket:`33480`).