# Django 6.0.2 documentation

# Django 5.2.5 release notes

August 6, 2025

Django 5.2.5 fixes several bugs in 5.2.4.

## Bugfixes

- Fixed a regression in Django 5.2.1 that prevented the usage of `UNNEST` PostgreSQL strategy of `QuerySet.bulk_create()` with foreign keys (#36502).

- Fixed a crash in Django 5.2 when filtering against a composite primary key using a tuple containing expressions (#36522).

- Fixed a crash in Django 5.2 when validating a model that uses `GeneratedField` or constraints composed of `Q` and `Case` lookups (#36518).

- Added compatibility for `docutils` 0.22 (#36535).

- Fixed a crash in Django 5.2 when using a `ManyToManyField` on a model with a composite primary key, by extending the `fields.E347` system check (#36530).