---
title: "Django 5.2.4 release notes"
version: 5.2
locale: ga
source: https://docs.djangoproject.com/ga/5.2/releases/5.2.4/
canonical: https://djangodocs.dev/ga/5.2/releases/5.2.4/
---
# Django 5.2.4 release notes

*July 2, 2025*

Django 5.2.4 fixes several bugs in 5.2.3.

## Buigdheisiúcháin

- Fixed a regression in Django 5.2.2 where [`HttpRequest.get_preferred_type()`](/ga/5.2/ref/request-response/#django.http.HttpRequest.get_preferred_type) incorrectly preferred more
  specific media types with a lower quality ([#36447](https://code.djangoproject.com/ticket/36447)).
- Fixed a regression in Django 5.2.3 where `Value(None, JSONField())` used in
  a [`When`](/ga/5.2/ref/models/conditional-expressions/#django.db.models.expressions.When) condition was incorrectly
  serialized as SQL `NULL` instead of JSON `null` ([#36453](https://code.djangoproject.com/ticket/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](https://code.djangoproject.com/ticket/36464)).
