1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
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
test_db_returning.py
test_explain.py Fixed #33717 -- Dropped support for PostgreSQL 11. 2022-05-19 09:26:48 +02:00
test_iterator.py
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
tests.py Refs #34012 -- Added test for ordering by transform of related fields. 2022-09-22 12:55:47 +02:00