summaryrefslogtreecommitdiff
path: root/tests/model_fields/test_generatedfield.py
AgeCommit message (Collapse)Author
2024-07-04[5.0.x] Fixed #35560 -- Made Model.full_clean() ignore GeneratedFields for ↵Mark Gensler
constraints. Accessing generated field values on unsaved models caused a crash when validating CheckConstraints and UniqueConstraints with expressions. Backport of 1005c2abd1ef0c156f449641e38c33e473989d37 from main.
2024-04-10[5.0.x] Fixed #35350 -- Fixed save() with pk set on models with GeneratedFields.Sarah Boyce
Thanks Matt Hegarty for the report and Simon Charette and Natalia Bidart for the reviews. Regression in f333e35. Backport of 8b53560eea9f10a1271d3bdf765dc6f969c7d9d5 from main.
2024-04-01[5.0.x] Fixed #35344, Refs #34838 -- Corrected output_field of resolved ↵Johannes Westphal
columns for GeneratedFields in aliased tables. Thanks Simon Charette for the review. Backport of 5f180216409d75290478c71ddb0ff8a68c91dc16 from main
2024-01-19[5.0.x] Fixed #35127 -- Made Model.full_clean() ignore GeneratedFields.Mariusz Felisiak
Thanks Claude Paroz for the report. Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 4879907223d70ee1a82474d9286ccfa5dae96971 from main
2023-12-08[5.0.x] Fixed #35019 -- Fixed save() on models with both GeneratedFields and ↵Sarah Boyce
ForeignKeys. Thanks Deb Kumar Das for the report. Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of b287af5dc954628d4b336aefc5027b2edceee64b from main
2023-12-07[5.0.x] Fixed #35024 -- Fixed model instance creation crash on ↵Mariusz Felisiak
GeneratedField.output_field with backend converters. Regression in d9de74141e8a920940f1b91ed0a3ccb835b55729. 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 5b3b791e9046461901df3898be8544e14d91b931 from main
2023-11-22[5.0.x] Fixed #34985 -- Fixed GeneratedFields.contribute_to_class() crash ↵Mariusz Felisiak
when apps are not populated. Thanks Paolo Melchiorre for the report. Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 101a85a5a06585ba16ecb25860146d034a8a55ec from main
2023-11-14[5.0.x] Fixed #34944 -- Made GeneratedField.output_field required.Mariusz Felisiak
Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 5875f03ce61b85dfd9ad34f7b871c231c358d432 from main
2023-11-02[5.0.x] Refs #31300 -- Allowed testing GeneratedField without collation.Tim Graham
CockroachDB and Snowflake don't support it. Backport of 208870b6122c4cbc39c3b2432e13db54c920db51 from main
2023-09-28[5.0.x] Fixed #34877 -- Fixed migrations crash when adding GeneratedField ↵Paolo Melchiorre
with output_field with params. Backport of e7e8eb44a30bcab004a582760752b5eb3fcd6e91 from main
2023-09-19[5.0.x] Isolated test models for GeneratedFields.Mariusz Felisiak
Test regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95. Backport of 8af3ae4ad9ca475f2428fac950de8df56b575e6a from main
2023-09-16Fixed #34842 -- Fixed ModelAdmin.readonly_fields crash with GeneratedFields.Paolo Melchiorre
2023-09-14Fixed #34838 -- Corrected output_field of resolved columns for GeneratedFields.Paolo Melchiorre
Thanks Simon Charette for the implementation idea.
2023-09-07Fixed #31300 -- Added GeneratedField model field.Jeremy Nauta
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>