Permalink
Browse files

[1.1.X] Fixed an unspecified ordering in the expression tests that co…

…uld 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
  • Loading branch information...
1 parent 87bb160 commit 778b7bcd19c3ac540412b6f9c5888cb9f1e28d89 @jacobian jacobian committed Feb 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/modeltests/expressions/models.py
View
2 tests/modeltests/expressions/models.py
@@ -78,7 +78,7 @@ def __unicode__(self):
>>> 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')

0 comments on commit 778b7bc

Please sign in to comment.