<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/model_fields, branch 5.2</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=5.2</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=5.2'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2025-03-01T18:47:17Z</updated>
<entry>
<title>[5.2.x] Applied Black's 2025 stable style.</title>
<updated>2025-03-01T18:47:17Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-03-01T18:41:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=53bb1d5a240a39d35abc11c6477ac5465c5fac2c'/>
<id>urn:sha1:53bb1d5a240a39d35abc11c6477ac5465c5fac2c</id>
<content type='text'>
https://github.com/psf/black/releases/tag/25.1.0
Backport of ff3aaf036f0cb66cd8f404cd51c603e68aaa7676 from main
</content>
</entry>
<entry>
<title>[5.2.x] 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:18:31Z</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/chango.git/commit/?id=43aa6990ac0fa8472397a3c4e0f5d963006af798'/>
<id>urn:sha1:43aa6990ac0fa8472397a3c4e0f5d963006af798</id>
<content type='text'>
For example on Oracle &lt; 21c.

Backport of 7500044a825b3e6695f4f0f9e56d5bdc0c5d7988 from main.
</content>
</entry>
<entry>
<title>[5.2.x] Fixed #35167 -- Delegated to super() in JSONField.get_db_prep_save().</title>
<updated>2025-02-18T16:29:34Z</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/chango.git/commit/?id=9525135698bd4f97cf1431776ef52ae393dfb3c0'/>
<id>urn:sha1:9525135698bd4f97cf1431776ef52ae393dfb3c0</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;

Backport of 0bf412111be686b6b23e00863f5d449d63557dbf from main.
</content>
</entry>
<entry>
<title>[5.2.x] Fixed #36025 -- Fixed re-aliasing of iterable (in/range) lookups rhs.</title>
<updated>2025-02-06T16:00:31Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-12-23T04:00:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d99985bbc121749c5a6bb9eb9a4a9099b6a002eb'/>
<id>urn:sha1:d99985bbc121749c5a6bb9eb9a4a9099b6a002eb</id>
<content type='text'>
In order for Expression.relabeled_clone to work appropriately its
get_source_expressions method must return all resolvable which wasn't the case
for Lookup when its right-hand-side is "direct" (not a compilable).

While refs #22288 added support for non-literals iterable right-hand-side
lookups it predated the subclassing of Lookup(Expression) refs #27021 which
could have been an opportunity to ensure right-hand-sides are always resolvable
(ValueList and ExpressionList).

Addressing all edge case with non-resolvable right-hand-sides would require
a significant refactor and deprecation of some parts of the Lookup interface so
this patch only focuses on FieldGetDbPrepValueIterableMixin (In and Range
lookups) by making sure that a right-hand-side containing resolvables are dealt
with appropriately during the resolving phase.

Thanks Aashay Amballi for the report.

Backport of 089deb82b9ac2d002af36fd36f288368cdac4b53 from main.
</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 #35982 -- Made DecimalField.get_db_prep_value() call DatabaseOperations.adapt_decimalfield_value().</title>
<updated>2024-12-09T08:46:06Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2024-12-07T01:44:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1860a1afc9ac20750f932e8e0a94b32d096f2848'/>
<id>urn:sha1:1860a1afc9ac20750f932e8e0a94b32d096f2848</id>
<content type='text'>
Regression in e9814029f570bd0866dc859147bca90340bcc913.

Thanks Simon Charette for advice and review.
</content>
</entry>
<entry>
<title>Fixed CVE-2024-53908 -- Prevented SQL injections in direct HasKeyLookup usage on Oracle.</title>
<updated>2024-12-04T12:43:13Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-11-09T02:27:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=8f8dc5a1fca7d076e749f307f6573af3512e7e99'/>
<id>urn:sha1:8f8dc5a1fca7d076e749f307f6573af3512e7e99</id>
<content type='text'>
Thanks Seokchan Yoon for the report, and Mariusz Felisiak and Sarah
Boyce for the reviews.
</content>
</entry>
<entry>
<title>Refs #35842 -- Fixed handling of quotes in JSONField key lookups on Oracle.</title>
<updated>2024-12-03T10:19:55Z</updated>
<author>
<name>Sage Abdullah</name>
<email>me@laymonage.com</email>
</author>
<published>2024-11-24T20:32:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=b28438f379049e5ee1a89067e9cc14b7d0da07cf'/>
<id>urn:sha1:b28438f379049e5ee1a89067e9cc14b7d0da07cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35766 -- Handled slices in BaseChoiceIterator.</title>
<updated>2024-09-18T14:45:53Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-09-17T10:40:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ae1ee24178ecd53ac5ef3fc2055e4be8b9602ac9'/>
<id>urn:sha1:ae1ee24178ecd53ac5ef3fc2055e4be8b9602ac9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #35405 -- Adjusted deprecation warning stacklevel in FieldCacheMixin.get_cache_name().</title>
<updated>2024-08-28T14:44:05Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-08-09T16:55:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=39abd56a7fb1e2f735040df0fdfc08f57d91a49b'/>
<id>urn:sha1:39abd56a7fb1e2f735040df0fdfc08f57d91a49b</id>
<content type='text'>
</content>
</entry>
</feed>
