We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5366aa9 commit d30ff77Copy full SHA for d30ff77
tests/modeltests/expressions/models.py
@@ -78,7 +78,7 @@ def __unicode__(self):
78
>>> c.save()
79
80
# F Expressions can also span joins
81
->>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct()
+>>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct().order_by('name')
82
[<Company: Foobar Ltd.>, <Company: Test GmbH>]
83
84
>>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')
0 commit comments