Django 5.2.2发布说明

Expected June 4, 2025

Django 5.2.2修复了5.2.1中的几个bug。

错误修正

  • Fixed a crash when using select_related against a ForeignObject originating from a model with a CompositePrimaryKey (#36373).

  • 修复了Django 5.2中的一个错误,其中子查询使用 "pk" 引用具有 CompositePrimaryKey 未能筹集 ValueError 当选择的列过多或过少时 (#36392 ).

  • Fixed a regression in Django 5.2 that caused a crash when no arguments were passed into QuerySet.union() (#36388).

  • 修复了Django 5.2中的回归,其中 RemoteUserMiddleware 已经覆盖了 process_request() 不再支持 (#36390 ).

  • 修复了Django 5.2中使用时导致崩溃的回归 OuterReffilter 的宗量 Aggregate 表达 (#36404 ).

  • Fixed a regression in Django 5.2 that caused a crash when using OuterRef in PostgreSQL aggregate functions ArrayAgg, StringAgg, and JSONBAgg (#36405).