Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/ordering/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,11 @@ def test_order_by_grandparent_fk_with_expression_in_default_ordering(self):
[g1, g2, g3],
)

def test_order_by_expression_ref(self):
self.assertQuerySetEqual(
Author.objects.annotate(upper_name=Upper("name")).order_by(
Length("upper_name")
Length("upper_name"), "pk"
),
Author.objects.order_by(Length(Upper("name"))),
Author.objects.order_by(Length(Upper("name")), "pk"),
)

def test_ordering_select_related_collision(self):
Expand Down
Loading