diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-27 18:51:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-27 18:51:39 +0100 |
| commit | e972620ada4f9ed7bc57f28e133e85c85b0a7b20 (patch) | |
| tree | 1039312b040a3194c9e2abd966eb383262400ca7 /docs | |
| parent | 2eed554c3fd75dae1beade79f357ffd18d3c4fdf (diff) | |
Fixed #33462 -- Fixed migration crash when altering type of primary key with MTI and foreign key.
This prevents duplicated operations when altering type of primary key
with MTI and foreign key. Previously, a foreign key to the base model
was added twice, once directly and once by the inheritance model.
Thanks bcail for the report.
Regression in 325d7710ce9f6155bb55610ad6b4580d31263557.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.0.2.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/4.0.2.txt b/docs/releases/4.0.2.txt index 8227d98622..af0f728c54 100644 --- a/docs/releases/4.0.2.txt +++ b/docs/releases/4.0.2.txt @@ -28,3 +28,7 @@ Bugfixes * Fixed a regression in Django 4.0 that caused incorrect :attr:`.ModelAdmin.radio_fields` layout in the admin (:ticket:`33407`). + +* Fixed a duplicate operation regression in Django 4.0 that caused a migration + crash when altering a primary key type for a concrete parent model referenced + by a foreign key (:ticket:`33462`). |
