Django 5.0.1发行说明

January 2, 2024

Django 5.0.1修复了5.0中的几个错误。

错误修正

  • Reallowed, following a regression in Django 5.0, using a foreign key to a model with a primary key that is not AutoField in ModelAdmin.list_filter (#35020).

  • 修复了在处理 RETURNING INTO 属性创建模型实例时导致崩溃的子句 GeneratedField 哪一个 output_field 具有特定于后端的转换器 (#35024 )。

  • 修复了Django 5.0中导致崩溃的回归 Model.save() 对于同时具有这两种功能的型号 GeneratedFieldForeignKey 字段 (#35019 )。

  • Fixed a bug in Django 5.0 that caused a migration crash on Oracle < 23c when adding a GeneratedField with output_field=BooleanField (#35018).

  • 修复了Django 5.0中的回归问题,同一行上的管理字段可能会溢出页面并变得不可交互 (#35012 )。

  • 添加了对 oracledb 2.0.0 (#35054 )。

  • Fixed a regression in Django 5.0 where querysets referenced incorrect field names from FilteredRelation() (#35050).

  • Fixed a regression in Django 5.0 that caused a system check crash when ModelAdmin.filter_horizontal or filter_vertical contained a reverse many-to-many relation with related_name (#35056).