Author: jacob
Date: 2010-02-23 17:04:25 -0600 (Tue, 23 Feb 2010)
New Revision: 12554
Modified:
django/branches/releases/1.1.X/tests/modeltests/expressions/models.py
Log:
[1.1.X] Fixed an unspecified ordering in the expression tests that could lead
to a heisenbug.
Backport of [12553]
Modified: django/branches/releases/1.1.X/tests/modeltests/expressions/models.py
===================================================================
--- django/branches/releases/1.1.X/tests/modeltests/expressions/models.py
2010-02-23 23:02:10 UTC (rev 12553)
+++ django/branches/releases/1.1.X/tests/modeltests/expressions/models.py
2010-02-23 23:04:25 UTC (rev 12554)
@@ -78,7 +78,7 @@
>>> 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')
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.