django-planet
April 2, 2025

Django 5.2 released

published by Sarah Boyce
in blog The Django weblog
original entry Django 5.2 released

The Django team is happy to announce the release of Django 5.2.

The release notes showcase a composite of new features. A few highlights are:

  • All models are automatically imported in the shell by default.
  • Django now supports composite primary keys! The new django.db.models.CompositePrimaryKey allows tables to be created with a primary key consisting of multiple fields.
  • Overriding a BoundField got a lot easier: this can now be set on a form, field or project level.

You can get Django 5.2 from our downloads page or from the Python Package Index. The PGP key ID used for this release is: 3955B19851EA96EF

With the release of Django 5.2, Django 5.1 has reached the end of mainstream support. The final minor bug fix release, 5.1.8, which was also a security release, was issued today. Django 5.1 will receive security and data loss fixes until December 2025. All users are encouraged to upgrade before then to continue receiving fixes for security issues.

Django 5.0 has reached the end of extended support. The final security release, 5.0.14, was issued today. All Django 5.0 users are encouraged to upgrade to Django 5.1 or later.

See the downloads page for a table of supported versions and the future release schedule.