diff options
| author | Anže Pečar <anze@pecar.me> | 2026-04-18 14:54:55 +0300 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-19 11:03:11 +0300 |
| commit | a284a49153f005f2a7af087025e5112ba06cbd5f (patch) | |
| tree | 1adcc51fd24f588858cf28d6532bdda241214768 /.pre-commit-config.yaml | |
| parent | d33364c7ba330a349e38449c98494323a4ed7c8d (diff) | |
Fixed #37047 -- Fixed crash in Query.orderby_issubset_groupby for descending and random order_by strings.
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.
Diffstat (limited to '.pre-commit-config.yaml')
0 files changed, 0 insertions, 0 deletions
