Added ordering to fix non-deterministic relatedapp test.

This commit is contained in:
Tim Graham 2014-09-29 08:50:36 -04:00
parent 4b257cf261
commit df578bf175
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ class RelatedGeoModelTest(TestCase):
def test02_select_related(self):
"Testing `select_related` on geographic models (see #7126)."
qs1 = City.objects.all()
qs2 = City.objects.select_related()
qs3 = City.objects.select_related('location')
qs1 = City.objects.order_by('id')
qs2 = City.objects.order_by('id').select_related()
qs3 = City.objects.order_by('id').select_related('location')
# Reference data for what's in the fixtures.
cities = (