Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 778b7bcd19c3ac540412b6f9c5888cb9f1e28d89 1 parent 87bb160
@jacobian jacobian authored
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')
Please sign in to comment.
Something went wrong with that request. Please try again.