A long-term support release that adds composite primary keys, automatic model imports in the shell, and easier customization of BoundField.
Download Django 5.2 LTS PDF Official release notes
Release notes
- Released: April 2, 2025
- Python: 3.10 – 3.14
- Support: Long-term support (LTS)
Read the full notes, including backwards-incompatible changes, at docs.djangoproject.com.
New features
- Composite primary keys via models.CompositePrimaryKey.
- manage.py shell imports all models automatically.
- BoundField can be customized with Form.bound_field_class and Field.bound_field_class.
- HttpResponse.text property returns the decoded body.
- AlterConstraint migration operation.
Deprecated features
- The all argument of staticfiles finders' find(): use find_all().
- The ordering argument of PostgreSQL aggregates: use order_by.