mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Added ordering to fix non-deterministic relatedapp test.
This commit is contained in:
parent
4b257cf261
commit
df578bf175
@ -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 = (
|
||||
|
Loading…
Reference in New Issue
Block a user