Fixed an unspecified ordering in the expression tests that could lead to a heisenbug.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5366aa96fe
commit
d30ff77602
|
@ -78,7 +78,7 @@ __test__ = {'API_TESTS': """
|
||||||
>>> c.save()
|
>>> c.save()
|
||||||
|
|
||||||
# F Expressions can also span joins
|
# F Expressions can also span joins
|
||||||
>>> 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')
|
||||||
[<Company: Foobar Ltd.>, <Company: Test GmbH>]
|
[<Company: Foobar Ltd.>, <Company: Test GmbH>]
|
||||||
|
|
||||||
>>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')
|
>>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')
|
||||||
|
|
Loading…
Reference in New Issue