summaryrefslogtreecommitdiff
path: root/docs/internals/contributing/writing-code
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-01-28 12:02:33 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-02-04 14:48:44 +0100
commit761946f8e1b6d725f83fa4f3b04ca9750f486009 (patch)
tree9dd3f0bc8320d2e5f943ceb271d801ab840cb917 /docs/internals/contributing/writing-code
parent914eee1a9bee7ae48e6b23ef905ec00bcc241791 (diff)
[5.0.x] Fixed #35149 -- Fixed crashes of db_default with unresolvable output field.
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. Backport of e67d7d70fa10c06aca36b9057f82054eda45269d from main
Diffstat (limited to 'docs/internals/contributing/writing-code')
0 files changed, 0 insertions, 0 deletions