Django - 5.0.5


Django 5.0.5 release notes

May 6, 2024

Django 5.0.5 fixes several bugs in 5.0.4.

Bugfixes

  • Fixed a bug in Django 5.0 that caused a crash of Model.save() when
    creating an instance of a model with a GeneratedField and providing a
    primary key (#35350).
  • Fixed a compatibility issue encountered in Python 3.11.9+ and 3.12.3+ when
    validating email max line lengths with content decoded using the
    surrogateescape error handling scheme (#35361).
  • Fixed a bug in Django 5.0 that caused a crash when applying migrations
    including alterations to GeneratedField such as setting db\_index=True
    on SQLite (#35373).
  • Allowed importing aprefetch\_related\_objects from django.db.models
    (#35392).
  • Fixed a bug in Django 5.0 that caused a migration crash when a
    GeneratedField was added before any of the referenced fields from its
    expression definition (#35359).
  • Fixed a bug in Django 5.0 that caused a migration crash when altering a
    GeneratedField referencing a renamed field (#35422).
  • Fixed a bug in Django 5.0 where the querysets argument of
    GenericPrefetch was not required (#35426).

Details

date
May 6, 2024, 1:03 p.m.
type
Patch
👇
Register or login to:
  • 🔍View and search all Django releases.
  • 🛠️Create and share lists to track your tools.
  • 🚨Setup notifications for major, security, feature or patch updates.
  • 🚀Much more coming soon!
Continue with GitHub
Continue with Google
or