From 6a0bfdd2d503e86c43a7196f4778b64c9ff83021 Mon Sep 17 00:00:00 2001 From: Parth Sharma Date: Fri, 25 Apr 2025 12:12:38 +0530 Subject: [PATCH] fix test --- tests/ordering/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/ordering/tests.py b/tests/ordering/tests.py index b29404ed77da..a1d94b61fd61 100644 --- a/tests/ordering/tests.py +++ b/tests/ordering/tests.py @@ -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):