django/tests/ordering
David Sanders 4771a1694b Fixed #34012 -- Made QuerySet.order_by() apply transforms on related fields for models with Meta.ordering.
This makes QuerySet.order_by() no longer ignore trailing transforms for
models with Meta.ordering. As a consequence, FieldError is raised in
such cases for non-existent fields.

Thanks to Klaas van Schelven for the report and Mariusz Felisiak for the
review and advice.
2022-10-04 08:19:34 +02:00
..
__init__.py
models.py Fixed #29538 -- Fixed crash of ordering by related fields when Meta.ordering contains expressions. 2022-05-12 07:19:16 +02:00
tests.py Fixed #34012 -- Made QuerySet.order_by() apply transforms on related fields for models with Meta.ordering. 2022-10-04 08:19:34 +02:00