<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/model_fields/models.py, branch stable/6.0.x</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=stable%2F6.0.x</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=stable%2F6.0.x'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-01-29T13:38:53Z</updated>
<entry>
<title>[6.0.x] Fixed #36847 -- Ensured auto_now_add fields are set on pre_save().</title>
<updated>2026-01-29T13:38:53Z</updated>
<author>
<name>Nilesh Kumar Pahari</name>
<email>nileshpahari@protonmail.com</email>
</author>
<published>2026-01-25T18:32:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=77b306ea0fea54ed440a369dc38161331602386c'/>
<id>urn:sha1:77b306ea0fea54ed440a369dc38161331602386c</id>
<content type='text'>
Regression in 94680437a45a71c70ca8bd2e68b72aa1e2eff337. Refs #27222.

During INSERT operations, `field.pre_save()` is called to prepare values
for db insertion. The `add` param must be `True` for `auto_now_add`
fields to be populated. The regression commit passed `False`, causing
`auto_now_add` fields to remain `None` when used by other fields, such
as `upload_to` callables.

Thanks Ran Benita for the report.

Backport of fe189dc43ab3eddbbceefb6834893b73ca60d5ed from main.
</content>
</entry>
<entry>
<title>Refs #35167 -- Fixed test_bulk_update_custom_get_prep_value() crash on databases that don't support primitives in JSONFields.</title>
<updated>2025-02-20T07:14:18Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-02-19T21:13:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7500044a825b3e6695f4f0f9e56d5bdc0c5d7988'/>
<id>urn:sha1:7500044a825b3e6695f4f0f9e56d5bdc0c5d7988</id>
<content type='text'>
For example on Oracle &lt; 21c.
</content>
</entry>
<entry>
<title>Fixed #35167 -- Delegated to super() in JSONField.get_db_prep_save().</title>
<updated>2025-02-18T16:28:24Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2025-02-17T02:35:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=0bf412111be686b6b23e00863f5d449d63557dbf'/>
<id>urn:sha1:0bf412111be686b6b23e00863f5d449d63557dbf</id>
<content type='text'>
Avoids reports of bulk_update() sending Cast expressions
to JSONField.get_prep_value().

Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</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/django.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 #35695 -- Ensured FileFields use a storage pointing to a temp directory in model_fields tests.</title>
<updated>2024-08-21T11:51:25Z</updated>
<author>
<name>Hisham Mahmood</name>
<email>hishammahmood41@gmail.com</email>
</author>
<published>2024-08-21T11:51:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=519087819ed6e8bfbe6be208df71a7df19f23a58'/>
<id>urn:sha1:519087819ed6e8bfbe6be208df71a7df19f23a58</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #35560 -- Corrected required feature flags in GeneratedModelUniqueConstraint.</title>
<updated>2024-07-15T08:20:09Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-07-14T17:38:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=2d3bb414cfb2778cc64f22e7203102d7389f81e6'/>
<id>urn:sha1:2d3bb414cfb2778cc64f22e7203102d7389f81e6</id>
<content type='text'>
</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/django.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 #35472 -- Used temporary directory in test_imagefield.NoReadTests.</title>
<updated>2024-05-22T19:37:23Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-05-22T17:29:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7e39ae5c8cf4c6601a4f47b72914349481c5331b'/>
<id>urn:sha1:7e39ae5c8cf4c6601a4f47b72914349481c5331b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35139 -- Prevented file read after ImageField is saved to storage.</title>
<updated>2024-05-21T22:25:56Z</updated>
<author>
<name>John Parton</name>
<email>john.parton.iv@gmail.com</email>
</author>
<published>2024-01-24T22:22:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c5fe93349bd4339c41d057b87046e5d28be6f77'/>
<id>urn:sha1:9c5fe93349bd4339c41d057b87046e5d28be6f77</id>
<content type='text'>
</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/django.git/commit/?id=4879907223d70ee1a82474d9286ccfa5dae96971'/>
<id>urn:sha1:4879907223d70ee1a82474d9286ccfa5dae96971</id>
<content type='text'>
Thanks Claude Paroz for the report.

Regression in f333e3513e8bdf5ffeb6eeb63021c230082e6f95.</content>
</entry>
</feed>
