django1/django
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
..
apps [4.0.x] Fixed #33366 -- Fixed case handling with swappable setting detection in migrations autodetector. 2021-12-17 10:00:33 +01:00
conf [4.0.x] Updated translations from Transifex. 2021-12-06 20:29:53 +01:00
contrib [4.0.x] Fixed #33407 -- Fixed .radiolist admin CSS. 2022-01-26 10:04:08 +01:00
core [4.0.x] Fixed CVE-2021-45452 -- Fixed potential path traversal in storage subsystem. 2022-01-04 10:10:14 +01:00
db [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
dispatch Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code. 2021-06-25 06:55:47 +02:00
forms [4.0.x] Fixed #33419 -- Restored marking forms.Field.help_text as HTML safe. 2022-01-07 16:12:15 +01:00
http Simplified serializing HTTP response headers. 2021-08-02 09:24:48 +02:00
middleware Fixed #32768 -- Added Vary header when redirecting to prefixed i18n pattern. 2021-09-01 14:02:37 +02:00
template [4.0.x] Fixed CVE-2021-45116 -- Fixed potential information disclosure in dictsort template filter. 2022-01-04 10:10:14 +01:00
templatetags Fixed #32365 -- Made zoneinfo the default timezone implementation. 2021-09-16 12:11:05 +02:00
test [4.0.x] Fixed #33410 -- Fixed recursive capturing of callbacks by TestCase.captureOnCommitCallbacks(). 2022-01-07 16:12:01 +01:00
urls [4.0.x] Fixed #33426 -- Fixed ResolverMatch.__repr_() for class-based views. 2022-01-10 18:39:59 +01:00
utils [4.0.x] Fixed #33043 -- Made method_decorator() preserve wrapper assignments. 2021-10-20 18:52:10 +02:00
views [4.0.x] Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page. 2022-01-08 14:54:10 +01:00
__init__.py [4.0.x] Post-release version bump. 2022-01-04 10:46:42 +01:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py [4.0.x] Refs #32956 -- Changed docs to treat the acronym HTTP phonetically. 2021-10-19 06:33:00 +02:00