django/tests/queries
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 #34012 -- Made QuerySet.order_by() apply transforms on related fields for models with Meta.ordering. 2022-10-04 08:19:34 +02:00
test_bulk_update.py Made QuerySet.bulk_update() raise an error when batch_size is zero. 2022-06-13 06:25:25 +02:00
test_contains.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_db_returning.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_explain.py Fixed #33717 -- Dropped support for PostgreSQL 11. 2022-05-19 09:26:48 +02:00
test_iterator.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_q.py Refs #32948, Refs #32946 -- Used Q.create() internally for dynamic Q() objects. 2022-07-27 10:06:24 +02:00
test_qs_combinators.py Fixed #33796 -- Fixed ordered combined queryset crash when used in subquery on PostgreSQL and MySQL. 2022-06-27 06:21:31 +02:00
test_query.py Used AND, OR, XOR constants instead of hard-coded values. 2022-07-27 07:55:09 +02:00
test_sqlcompiler.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
tests.py Refs #34012 -- Added test for ordering by transform of related fields. 2022-09-22 12:55:47 +02:00