Django 5.0.4 release notes¶
April 3, 2024
Django 5.0.4 fixes several bugs in 5.0.3.
Bugfixes¶
Fixed a bug in Django 5.0 that caused a crash of
Model.full_clean()on fields with expressions indb_default. As a consequence,Model.full_clean()no longer validates for empty values in fields withdb_default(#35223).Fixed a regression in Django 5.0 where the
AdminFileWidgetcould be rendered with twoidattributes on the “Clear” checkbox (#35273).Fixed a bug in Django 5.0 that caused a migration crash on PostgreSQL 15+ when adding a partial
UniqueConstraintwithnulls_distinct(#35329).Fixed a crash in Django 5.0 when performing queries involving table aliases and lookups on a
GeneratedFieldof the aliased table (#35344).Fixed a bug in Django 5.0 that caused a migration crash when adding a
GeneratedFieldrelying on the__containsor__icontainslookups or using aValuecontaining a"%"(#35336).