# Django 6.0.7 documentation

# Django 5.2.4 release notes

July 2, 2025

Django 5.2.4 fixes several bugs in 5.2.3.

## 漏洞修复

- Fixed a regression in Django 5.2.2 where `HttpRequest.get_preferred_type()` incorrectly preferred more specific media types with a lower quality (#36447).

- Fixed a regression in Django 5.2.3 where `Value(None, JSONField())` used in a `When` condition was incorrectly serialized as SQL `NULL` instead of JSON `null` (#36453).

- Fixed a crash in Django 5.2 when performing an `__in` lookup involving a composite primary key and a subquery on backends that lack native support for tuple lookups (#36464).