<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/django/db/models/sql, 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>2026-06-10T14:17:34Z</updated>
<entry>
<title>Fixed #37142 -- Moved django_file_prefixes() to django.utils.warnings.</title>
<updated>2026-06-10T14:17:34Z</updated>
<author>
<name>zhengkangyang</name>
<email>1872483761@qq.com</email>
</author>
<published>2026-06-06T08:17:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=f970a98e464320c09dde8d45009eadfb4d038a57'/>
<id>urn:sha1:f970a98e464320c09dde8d45009eadfb4d038a57</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #37097 -- Removed compilation-time order clearing on combined queries on Oracle.</title>
<updated>2026-05-18T21:06:14Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2026-05-13T14:31:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=fbe902d4a4b8b9dcb371509b25ba8feff3852e64'/>
<id>urn:sha1:fbe902d4a4b8b9dcb371509b25ba8feff3852e64</id>
<content type='text'>
Thanks Simon Charette, JaeHyuck Sa, and Shai Berger for reviews.
</content>
</entry>
<entry>
<title>Refs #36938 -- Reverted "Refs #36938 -- Tolerated unnecessary ordering in compound queries on SQLite."</title>
<updated>2026-05-18T21:06:14Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2026-05-13T14:31:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=6bbe2656e1e89a03d1ae8f2cea7bdd2a027f0665'/>
<id>urn:sha1:6bbe2656e1e89a03d1ae8f2cea7bdd2a027f0665</id>
<content type='text'>
This mostly reverts 2314cdf1ff860058a6579bb9f9bac1253fc9ab43,
but keeps the removal of some test skips.
</content>
</entry>
<entry>
<title>Fixed #37097 -- Made Query.clear_ordering() clear ordering on combined queries also.</title>
<updated>2026-05-18T21:06:14Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2026-05-12T21:00:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=0e1d950fbb44878f6972a0e5730f69f98caf468e'/>
<id>urn:sha1:0e1d950fbb44878f6972a0e5730f69f98caf468e</id>
<content type='text'>
Thanks Shai Berger for the report.

Regression in 087bb9e8f3478d53f12b1737af865992af17c5f2.

(That commit drove more traffic into an error that would have been
reachable only with an explicit order_by() after each union().)

Co-authored-by: Simon Charette &lt;charettes@gmail.com&gt;
Co-authored-by: siddus &lt;dcsid10@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #36938 -- Tolerated unnecessary ordering in compound queries on SQLite.</title>
<updated>2026-05-11T18:50:40Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2026-05-11T16:07:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=2314cdf1ff860058a6579bb9f9bac1253fc9ab43'/>
<id>urn:sha1:2314cdf1ff860058a6579bb9f9bac1253fc9ab43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #36938 -- Removed unnecessary ordering from compound queries.</title>
<updated>2026-05-11T18:50:40Z</updated>
<author>
<name>siddus</name>
<email>dcsid10@gmail.com</email>
</author>
<published>2026-04-13T15:32:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9c655e98006dec4f4fd47a84c254f36404d631e4'/>
<id>urn:sha1:9c655e98006dec4f4fd47a84c254f36404d631e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #37047 -- Fixed crash in Query.orderby_issubset_groupby for descending and random order_by strings.</title>
<updated>2026-04-19T08:03:11Z</updated>
<author>
<name>Anže Pečar</name>
<email>anze@pecar.me</email>
</author>
<published>2026-04-18T11:54:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a284a49153f005f2a7af087025e5112ba06cbd5f'/>
<id>urn:sha1:a284a49153f005f2a7af087025e5112ba06cbd5f</id>
<content type='text'>
Run this example:

```python
User.objects.values("is_staff").annotate(latest=Max("date_joined")).order_by("-latest").count()
```

You should see the following exception:

```
django.core.exceptions.FieldError: Cannot resolve keyword '-latest' into field.
```

Regression in 2ce5cb0f7a4618dfdc5f5c10e53e2e9b9543d298.
</content>
</entry>
<entry>
<title>Fixed #20024 -- Fixed handling of __in lookups with None in exclude().</title>
<updated>2026-04-02T15:24:26Z</updated>
<author>
<name>Eddy Adegnandjou</name>
<email>adegnandjoueddy12@gmail.com</email>
</author>
<published>2025-10-31T08:00:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=cec10f992be8eed5ed90506375ae5794cbb7069e'/>
<id>urn:sha1:cec10f992be8eed5ed90506375ae5794cbb7069e</id>
<content type='text'>
Thanks Simon Charette and Tim Graham for reviews, and Jason Hall for a
prior iteration.
</content>
</entry>
<entry>
<title>Refs #36795 -- Deprecated SQLCompiler.quote_name_unless_alias().</title>
<updated>2026-03-19T16:24:17Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2026-03-16T03:31:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1786cd881ff4ad9458d56180ae555d92c14e5af8'/>
<id>urn:sha1:1786cd881ff4ad9458d56180ae555d92c14e5af8</id>
<content type='text'>
It has been superseded with .quote_name(), which ensures aliases are
always quoted.
</content>
</entry>
<entry>
<title>Fixed #36795 -- Enforced quoting of all database object names.</title>
<updated>2026-03-19T16:24:17Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2026-02-01T21:53:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=f05fac88c4699c6d04a8f1ac3328cf6c7bd39228'/>
<id>urn:sha1:f05fac88c4699c6d04a8f1ac3328cf6c7bd39228</id>
<content type='text'>
This ensures all database identifiers are quoted independently of their orign
and most importantly that user provided aliases through annotate() and alias()
which paves the way for dropping the allow list of characters such aliases can
contain.

This will require adjustments to raw SQL interfaces such as RawSQL that might
make reference to ORM managed annotations as these will now be quoted.

The `SQLCompiler.quote_name_unless_alias` method is kept for now as an alias
for the newly introduced `.quote_name` method but will be duly deprecated in
a follow up commit.
</content>
</entry>
</feed>
