# Django 5.2.7 documentation

# Django 5.2.8 release notes

November 5, 2025

Django 5.2.8 fixes one security issue with severity “high”, one security issue with severity “moderate”, and several bugs in 5.2.7. It also adds compatibility with Python 3.14.

## Bugfixes

- Added compatibility for `oracledb` 3.4.0 (#36646).

- Fixed a bug in Django 5.2 where `QuerySet.first()` and `QuerySet.last()` raised an error on querysets performing aggregation that selected all fields of a composite primary key.