Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

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: 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/
2  tests/modeltests/expressions/
@@ -78,7 +78,7 @@ def __unicode__(self):
# 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.