mirror of
https://github.com/django/django.git
synced 2025-01-05 07:55:47 +00:00
e67d7d70fa
Field.db_default accepts either literal Python values or compilables
(as_sql) and wrap the former ones in Value internally.
While 1e38f11
added support for automatic resolving of output fields for
types such as str, int, float, and other unambigous ones it's cannot do
so for all types such as dict or even contrib.postgres and contrib.gis
primitives.
When a literal, non-compilable, value is provided it likely make the
most sense to bind its output field to the field its attached to avoid
forcing the user to provide an explicit `Value(output_field)`.
Thanks David Sanders for the report.
44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
==========================
|
|
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 in :attr:`.ModelAdmin.list_filter`
|
|
(:ticket:`35087`).
|
|
|
|
* Fixed a regression in Django 5.0 where links in the admin had an incorrect
|
|
color (:ticket:`35121`).
|
|
|
|
* Fixed a bug in Django 5.0 that caused a crash of ``Model.full_clean()`` on
|
|
models with a ``GeneratedField`` (:ticket:`35127`).
|
|
|
|
* Fixed a regression in Django 5.0 that caused a crash of
|
|
``FilteredRelation()`` with querysets as right-hand sides (:ticket:`35135`).
|
|
``FilteredRelation()`` now raises a ``ValueError`` 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 used ``prefetch_related()``
|
|
(:ticket:`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 (:ticket:`35059`).
|
|
|
|
* Fixed a bug in Django 5.0 that caused a migration crash on MySQL when adding
|
|
a ``BinaryField``, ``TextField``, ``JSONField``, or ``GeometryField`` with a
|
|
``db_default`` (:ticket:`35162`).
|
|
|
|
* Fixed a bug in Django 5.0 that caused a migration crash on models with a
|
|
literal ``db_default`` of a complex type such as ``dict`` instance of a
|
|
``JSONField``. Running ``makemigrations`` might generate no-op ``AlterField``
|
|
operations for fields using ``db_default`` (:ticket:`35149`).
|