Skip to content

Commit d30ff77

Browse files
committed
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
1 parent 5366aa9 commit d30ff77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/modeltests/expressions/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __unicode__(self):
7878
>>> c.save()
7979
8080
# F Expressions can also span joins
81-
>>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct()
81+
>>> Company.objects.filter(ceo__firstname=F('point_of_contact__firstname')).distinct().order_by('name')
8282
[<Company: Foobar Ltd.>, <Company: Test GmbH>]
8383
8484
>>> _ = Company.objects.exclude(ceo__firstname=F('point_of_contact__firstname')).update(name='foo')

0 commit comments

Comments
 (0)