Django - 5.0.2
Security
Django 5.0.2 release notes
February 6, 2024
Django 5.0.2 fixes a security issue with severity “moderate” and several bugs
in 5.0.1. Also, the latest string translations from Transifex are incorporated.
Bugfixes
- Reallowed, following a regression in Django 5.0.1, filtering against local
foreign keys not included inModelAdmin.list\_filter
(#35087). - Fixed a regression in Django 5.0 where links in the admin had an incorrect
color (#35121). - Fixed a bug in Django 5.0 that caused a crash of
Model.full\_clean()
on
models with aGeneratedField
(#35127). - Fixed a regression in Django 5.0 that caused a crash of
FilteredRelation()
with querysets as right-hand sides (#35135).
FilteredRelation()
now raises aValueError
on querysets as right-hand
sides. - Fixed a regression in Django 5.0 that caused a crash of the
dumpdata
management command when a base queryset usedprefetch\_related()
(#35159). - Fixed a regression in Django 5.0 that caused the
request\_finished
signal to
sometimes not be fired when running Django through an ASGI server, resulting
in potential resource leaks (#35059). - Fixed a bug in Django 5.0 that caused a migration crash on MySQL when adding
aBinaryField
,TextField
,JSONField
, orGeometryField
with a
db\_default
(#35162). - Fixed a bug in Django 5.0 that caused a migration crash on models with a
literaldb\_default
of a complex type such asdict
instance of a
JSONField
. Runningmakemigrations
might generate no-opAlterField
operations for fields usingdb\_default
(#35149).
Security
Security wording was detected, but no CVEs were found.
Details
date
Feb. 6, 2024, 12:25 p.m.
type
Patch
official page
👇
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!