1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
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 Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
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