<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/model_fields/test_generatedfield.py, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2025-12-13T15:38:04Z</updated>
<entry>
<title>Fixed #36765 -- Added support for stored GeneratedFields on Oracle 23ai/26ai (23.7+).</title>
<updated>2025-12-13T15:38:04Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-12-13T15:38:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0174a85770356fd12e4c8daa42a4f1c752ae00e6'/>
<id>urn:sha1:0174a85770356fd12e4c8daa42a4f1c752ae00e6</id>
<content type='text'>
Thanks Jacob Walls for the review.</content>
</entry>
<entry>
<title>Refs #27222 -- Refreshed GeneratedFields values on save() initiated update.</title>
<updated>2025-09-13T22:27:49Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-03-19T05:11:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=55a0073b3beb9de8f7c1f7c44a7d0bc10126c841'/>
<id>urn:sha1:55a0073b3beb9de8f7c1f7c44a7d0bc10126c841</id>
<content type='text'>
This required implementing UPDATE RETURNING machinery that heavily
borrows from the INSERT one.
</content>
</entry>
<entry>
<title>Fixed #33312 -- Raised explicit exception when copying deferred model instances.</title>
<updated>2025-05-16T06:13:57Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-05-06T17:57:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e03e5c751c56db5f4cb99e142c92d7d8db3a5463'/>
<id>urn:sha1:e03e5c751c56db5f4cb99e142c92d7d8db3a5463</id>
<content type='text'>
Previously save() would crash with an attempted forced update message, and both
save(force_insert=True) and bulk_create() would crash with DoesNotExist errors
trying to retrieve rows with an empty primary key (id IS NULL).

Implementing deferred field model instance copying might be doable in certain
cases (e.g. when all the deferred fields are db generated) but that's not
trivial to implement in a backward compatible way.

Thanks Adam Sołtysik for the report and test and Clifford for the review.
</content>
</entry>
<entry>
<title>Fixed #36262 -- Made GeneratedField.db_persist a required key-word argument.</title>
<updated>2025-03-25T11:50:24Z</updated>
<author>
<name>Jason Cameron</name>
<email>git@jasoncameron.dev</email>
</author>
<published>2025-03-18T04:38:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9608678704a5f89b4c946eea93e90a0f6eb8e3ef'/>
<id>urn:sha1:9608678704a5f89b4c946eea93e90a0f6eb8e3ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #36086 -- Fixed crash when using GeneratedField with non-AutoField pk.</title>
<updated>2025-01-13T10:13:29Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-01-11T06:08:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9e552015556661d183a999078a9e846200ef6765'/>
<id>urn:sha1:9e552015556661d183a999078a9e846200ef6765</id>
<content type='text'>
The previous logic was systematically attempting to retrieve last_insert_id
even for models without an AutoField primary key when they had a GeneratedField
on backends that can't return columns from INSERT.

The issue affected MySQL, SQLite &lt; 3.35, and Oracle when the use_returning_into
option was disabled and could result in either crashes when the non-auto
primary key wasn't an IntegerField subclass or silent misassignment of bogus
insert ids (0 or the previous auto primary key insert value) to the first
defined generated field value.
</content>
</entry>
<entry>
<title>Fixed #35560 -- Made Model.full_clean() ignore GeneratedFields for constraints.</title>
<updated>2024-07-04T09:45:15Z</updated>
<author>
<name>Mark Gensler</name>
<email>mark.gensler@protonmail.com</email>
</author>
<published>2024-06-25T14:04:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1005c2abd1ef0c156f449641e38c33e473989d37'/>
<id>urn:sha1:1005c2abd1ef0c156f449641e38c33e473989d37</id>
<content type='text'>
Accessing generated field values on unsaved models caused a crash when
validating CheckConstraints and UniqueConstraints with expressions.
</content>
</entry>
<entry>
<title>Fixed #35350 -- Fixed save() with pk set on models with GeneratedFields.</title>
<updated>2024-04-10T13:43:50Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-04-08T16:10:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=8b53560eea9f10a1271d3bdf765dc6f969c7d9d5'/>
<id>urn:sha1:8b53560eea9f10a1271d3bdf765dc6f969c7d9d5</id>
<content type='text'>
Thanks Matt Hegarty for the report and Simon Charette and Natalia Bidart for the reviews.

Regression in f333e35.
</content>
</entry>
<entry>
<title>Fixed #35344, Refs #34838 -- Corrected output_field of resolved columns for GeneratedFields in aliased tables.</title>
<updated>2024-04-01T17:54:38Z</updated>
<author>
<name>Johannes Westphal</name>
<email>jojo@w-hat.de</email>
</author>
<published>2024-03-30T22:14:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=5f180216409d75290478c71ddb0ff8a68c91dc16'/>
<id>urn:sha1:5f180216409d75290478c71ddb0ff8a68c91dc16</id>
<content type='text'>
Thanks Simon Charette for the review.
</content>
</entry>
<entry>
<title>Fixed #35127 -- Made Model.full_clean() ignore GeneratedFields.</title>
<updated>2024-01-19T07:55:50Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-01-19T07:55:50Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=4879907223d70ee1a82474d9286ccfa5dae96971'/>
<id>urn:sha1:4879907223d70ee1a82474d9286ccfa5dae96971</id>
<content type='text'>
Thanks Claude Paroz for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.</content>
</entry>
<entry>
<title>Fixed #35019 -- Fixed save() on models with both GeneratedFields and ForeignKeys.</title>
<updated>2023-12-08T08:46:11Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2023-12-06T22:19:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=b287af5dc954628d4b336aefc5027b2edceee64b'/>
<id>urn:sha1:b287af5dc954628d4b336aefc5027b2edceee64b</id>
<content type='text'>
Thanks Deb Kumar Das for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.
</content>
</entry>
</feed>
