Mariusz Felisiak
ee78fe390d
[5.0.x] Fixed #35127 -- Made Model.full_clean() ignore GeneratedFields.
...
Thanks Claude Paroz for the report.
Regression in f333e3513e .
Backport of 4879907223 from main
2024-01-19 08:56:14 +01:00
Sarah Boyce
03af8fbd0f
[5.0.x] Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys.
...
Thanks Deb Kumar Das for the report.
Regression in f333e3513e .
Backport of b287af5dc9 from main
2023-12-08 12:09:56 +01:00
Mariusz Felisiak
415a08a528
[5.0.x] Fixed #35024 -- Fixed model instance creation crash on GeneratedField.output_field with backend converters.
...
Regression in d9de74141e .
This is a long standing issue, however it caused a crash of
GeneratedFields for all output fields that have backend-specific
converters when the RETURNING clause is not supported
(MySQL and SQLite < 3.35).
That's why severity was exacerbated.
Backport of 5b3b791e90 from main
2023-12-07 20:50:48 +01:00
Mariusz Felisiak
48eebdc63c
[5.0.x] Fixed #34985 -- Fixed GeneratedFields.contribute_to_class() crash when apps are not populated.
...
Thanks Paolo Melchiorre for the report.
Regression in f333e3513e .
Backport of 101a85a5a0 from main
2023-11-22 13:49:59 +01:00
Mariusz Felisiak
ddbe5c86e8
[5.0.x] Fixed #34944 -- Made GeneratedField.output_field required.
...
Regression in f333e3513e .
Backport of 5875f03ce6 from main
2023-11-14 20:22:33 +01:00
Tim Graham
b735b90f43
[5.0.x] Refs #31300 -- Allowed testing GeneratedField without collation.
...
CockroachDB and Snowflake don't support it.
Backport of 208870b612 from main
2023-11-02 15:48:31 +01:00
Paolo Melchiorre
0f9d07398d
[5.0.x] Fixed #34877 -- Fixed migrations crash when adding GeneratedField with output_field with params.
...
Backport of e7e8eb44a3 from main
2023-09-28 08:12:39 +02:00
Mariusz Felisiak
b5b361ab3b
[5.0.x] Isolated test models for GeneratedFields.
...
Test regression in f333e3513e .
Backport of 8af3ae4ad9 from main
2023-09-19 08:10:03 +02:00
Paolo Melchiorre
2f1ab16be5
Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.
2023-09-16 20:13:02 +02:00
Paolo Melchiorre
68d769e691
Fixed #34838 -- Corrected output_field of resolved columns for GeneratedFields.
...
Thanks Simon Charette for the implementation idea.
2023-09-14 21:17:12 +02:00
Jeremy Nauta
f333e3513e
Fixed #31300 -- Added GeneratedField model field.
...
Thanks Adam Johnson and Paolo Melchiorre for reviews.
Co-Authored-By: Lily Foote <code@lilyf.org >
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com >
2023-09-07 06:19:08 +02:00