diff --git a/tests/regressiontests/extra_regress/models.py b/tests/regressiontests/extra_regress/models.py index 1d31fb267a..5a98a5dac4 100644 --- a/tests/regressiontests/extra_regress/models.py +++ b/tests/regressiontests/extra_regress/models.py @@ -100,11 +100,11 @@ True # Regression test for #8819: Fields in the extra(select=...) list should be # available to extra(order_by=...). ->>> User.objects.extra(select={'extra_field': 1}).distinct() +>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}).distinct() [] ->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']) +>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field']) [] ->>> User.objects.extra(select={'extra_field': 1}, order_by=['extra_field']).distinct() +>>> User.objects.filter(pk=u.id).extra(select={'extra_field': 1}, order_by=['extra_field']).distinct() [] """}