<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/aggregation_regress/tests.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-04-19T08:03:11Z</updated>
<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/django.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>Refs #36883 -- Split monolithic aggregation/lookup/queries tests.</title>
<updated>2026-03-21T14:14:48Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2026-02-10T01:57:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=f2169ef3688422d394d36007e320bac839117f0b'/>
<id>urn:sha1:f2169ef3688422d394d36007e320bac839117f0b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #36883 -- Split monolithic aggregation regression tests.</title>
<updated>2026-01-26T15:37:11Z</updated>
<author>
<name>varunkasyap</name>
<email>varunkasyap@hotmail.com</email>
</author>
<published>2026-01-25T05:32:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=229d026207dddd5b184e9569f104d315f1c79c81'/>
<id>urn:sha1:229d026207dddd5b184e9569f104d315f1c79c81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #26434 -- Removed faulty clearing of ordering field when missing from explicit grouping.</title>
<updated>2025-12-15T20:23:51Z</updated>
<author>
<name>Michal Mládek</name>
<email>osvc.04923031@gmail.com</email>
</author>
<published>2025-05-26T16:37:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=2ce5cb0f7a4618dfdc5f5c10e53e2e9b9543d298'/>
<id>urn:sha1:2ce5cb0f7a4618dfdc5f5c10e53e2e9b9543d298</id>
<content type='text'>
Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Reverted "Fixed #26434 -- Removed faulty clearing of ordering field when missing from explicit grouping."</title>
<updated>2025-10-28T15:40:01Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2025-10-28T14:43:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=43933a1dca07047e95ec990d9289d0212668009e'/>
<id>urn:sha1:43933a1dca07047e95ec990d9289d0212668009e</id>
<content type='text'>
This reverts commit ea3a71c2d09f8281d8a50ed20e40e1fb13db5cd9.

The implementation was flawed, as self.group_by contains Cols, not aliases.
</content>
</entry>
<entry>
<title>Fixed #26434 -- Removed faulty clearing of ordering field when missing from explicit grouping.</title>
<updated>2025-10-27T19:11:19Z</updated>
<author>
<name>Michal Mládek</name>
<email>osvc.04923031@gmail.com</email>
</author>
<published>2025-05-26T16:37:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ea3a71c2d09f8281d8a50ed20e40e1fb13db5cd9'/>
<id>urn:sha1:ea3a71c2d09f8281d8a50ed20e40e1fb13db5cd9</id>
<content type='text'>
Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #36500 -- Rewrapped long docstrings and block comments via a script.</title>
<updated>2025-07-23T23:17:55Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2025-07-23T03:41:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=69a93a88edb56ba47f624dac7a21aacc47ea474f'/>
<id>urn:sha1:69a93a88edb56ba47f624dac7a21aacc47ea474f</id>
<content type='text'>
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
</content>
</entry>
<entry>
<title>Applied Black's 2024 stable style.</title>
<updated>2024-01-26T11:45:07Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2024-01-26T11:45:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=305757aec19c9d5111e4d76095ae0acd66163e4b'/>
<id>urn:sha1:305757aec19c9d5111e4d76095ae0acd66163e4b</id>
<content type='text'>
https://github.com/psf/black/releases/tag/24.1.0</content>
</entry>
<entry>
<title>Fixed #34176 -- Fixed grouping by ambiguous aliases.</title>
<updated>2023-01-09T09:52:51Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2023-01-06T14:10:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=dd68af62b2b27ece50d434f6a351877212e15c3f'/>
<id>urn:sha1:dd68af62b2b27ece50d434f6a351877212e15c3f</id>
<content type='text'>
Regression in b7b28c7c189615543218e81319473888bc46d831.

Refs #31377.

Thanks Shai Berger for the report and reviews.

test_aggregation_subquery_annotation_values_collision() has been
updated as queries that are explicitly grouped by a subquery should
always be grouped by it and not its outer columns even if its alias
collides with referenced table columns. This was not possible to
accomplish at the time 10866a10 landed because we didn't have compiler
level handling of colliding aliases.
</content>
</entry>
<entry>
<title>Refs #17144 -- Removed support for grouping by primary key.</title>
<updated>2022-11-07T11:21:29Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2022-11-05T16:49:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5f09ab8c30050bbd076a9b27fb135d030c06ab75'/>
<id>urn:sha1:5f09ab8c30050bbd076a9b27fb135d030c06ab75</id>
<content type='text'>
No core backend require the feature anymore as it was only added to
support a MySQL'ism that has been deprecated since then.
</content>
</entry>
</feed>
