mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #30557 -- Fixed crash of ordering by ptr fields when Meta.ordering contains F() expressions.
Thanks Can Sarıgöl for the report.
Follow up to 8c5f9906c5.
This commit is contained in:
@@ -485,7 +485,7 @@ class OrderingTests(TestCase):
|
||||
def test_deprecated_values_annotate(self):
|
||||
msg = (
|
||||
"Article QuerySet won't use Meta.ordering in Django 3.1. Add "
|
||||
".order_by('-pub_date', 'headline', OrderBy(F(author__name), "
|
||||
".order_by('-pub_date', F(headline), OrderBy(F(author__name), "
|
||||
"descending=False), OrderBy(F(second_author__name), "
|
||||
"descending=False)) to retain the current query."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user