Django 4.1.2发行说明

October 4, 2022

Django 4.1.2在4.1.1中修复了严重程度为“中等”的安全问题和几个错误。

CVE-2022-41323:国际化URL中的潜在拒绝服务漏洞

通过Locale参数,国际化的URL容易受到潜在的拒绝服务攻击。

补补

  • Fixed a regression in Django 4.1 that caused a migration crash on PostgreSQL when adding a model with ExclusionConstraint (#33982).

  • 修复了Django 4.1中的回归,该回归导致在包含 Exists 由于选定的列太多,要崩溃的注释 (#33992 )。

  • 修复了Django 4.1中导致错误验证的错误 CheckConstraint 在……上面 NULL 值 (#33996 )。

  • Fixed a regression in Django 4.1 that caused a QuerySet.values()/values_list() crash on ArrayAgg() and JSONBAgg() (#34016).

  • 修复了Django 4.1中导致 ModelAdmin.autocomplete_fields 通过弹出窗口添加/更改相关实例后被错误选择 (#34025 )。

  • Fixed a regression in Django 4.1 where the app registry was not populated when running parallel tests with the multiprocessing start method spawn (#34010).

  • Fixed a regression in Django 4.1 where the --debug-mode argument to test did not work when running parallel tests with the multiprocessing start method spawn (#34010).

  • 修复了Django 4.1中的回归,该回归在更改PostgreSQL上Django 4.1之前的序列列类型时不会更改序列类型 (#34058 )。

  • 修复了Django 4.1中导致崩溃的回归 View 在处理不允许的HTTP方法时使用异步处理程序的子类 (#34062 )。

  • 已恢复与缓存相关的管理器 ForeignKeyManyToManyField ,以及 GenericRelation 这导致相关对象的刷新不正确 (#33984 )。

  • 将Django 4.1中添加的用于多个模板标记模块的相同名称的系统检查放宽为警告 (#32987 )。