mirror of
https://github.com/Hopiu/django.git
synced 2026-05-16 03:23:09 +00:00
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.
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
==========================
|
|
Django 4.0.2 release notes
|
|
==========================
|
|
|
|
*February 1, 2022*
|
|
|
|
Django 4.0.2 fixes two security issues with severity "medium" and several bugs
|
|
in 4.0.1.
|
|
|
|
Bugfixes
|
|
========
|
|
|
|
* Fixed a bug in Django 4.0 where ``TestCase.captureOnCommitCallbacks()`` could
|
|
execute callbacks multiple times (:ticket:`33410`).
|
|
|
|
* Fixed a regression in Django 4.0 where ``help_text`` was HTML-escaped in
|
|
automatically-generated forms (:ticket:`33419`).
|
|
|
|
* Fixed a regression in Django 4.0 that caused displaying an incorrect name for
|
|
class-based views on the technical 404 debug page (:ticket:`33425`).
|
|
|
|
* Fixed a regression in Django 4.0 that caused an incorrect ``repr`` of
|
|
``ResolverMatch`` for class-based views (:ticket:`33426`).
|
|
|
|
* Fixed a regression in Django 4.0 that caused a crash of ``makemigrations`` on
|
|
models without ``Meta.order_with_respect_to`` but with a field named
|
|
``_order`` (:ticket:`33449`).
|
|
|
|
* 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`).
|