django1/django/db
Mariusz Felisiak 7c2d4d943b [4.0.x] 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 325d7710ce.
Backport of e972620ada from main
2022-01-27 18:52:35 +01:00
..
backends [4.0.x] Fixed #33462 -- Fixed migration crash when altering type of primary key with MTI and foreign key. 2022-01-27 18:52:35 +01:00
migrations [4.0.x] Fixed #33449 -- Fixed makemigrations crash on models without Meta.order_with_respect_to but with _order field. 2022-01-21 08:46:14 +01:00
models [4.0.x] Fixed #33335 -- Made model validation ignore functional unique constraints. 2021-12-06 13:28:54 +01:00
__init__.py Fixed #32233 -- Cleaned-up duplicate connection functionality. 2020-12-08 08:55:44 +01:00
transaction.py Fixed #32220 -- Added durable argument to transaction.atomic(). 2020-11-27 21:43:15 +01:00
utils.py Refs #25175 -- Removed postgresql_psycopg2 in django.db.utils.load_backend(). 2021-01-06 20:15:14 +01:00