[1.1.X] Fixed an unspecified ordering in the expression tests that could lead to a heisenbug.

Backport of [12553]

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12554 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2010-02-23 23:04:25 +00:00
parent 87bb1608bd
commit 778b7bcd19
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ __test__ = {'API_TESTS': """
>>> c.save()
# 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.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')