[4.1.x] Fixed RelatedGeoModelTest.test08_defer_only() on MySQL 8+ with MyISAM storage engine.
Backport of 73766c1187
from main
This commit is contained in:
parent
675d2239ce
commit
14057603c7
|
@ -201,8 +201,8 @@ class RelatedGeoModelTest(TestCase):
|
||||||
|
|
||||||
def test08_defer_only(self):
|
def test08_defer_only(self):
|
||||||
"Testing defer() and only() on Geographic models."
|
"Testing defer() and only() on Geographic models."
|
||||||
qs = Location.objects.all()
|
qs = Location.objects.all().order_by("pk")
|
||||||
def_qs = Location.objects.defer("point")
|
def_qs = Location.objects.defer("point").order_by("pk")
|
||||||
for loc, def_loc in zip(qs, def_qs):
|
for loc, def_loc in zip(qs, def_qs):
|
||||||
self.assertEqual(loc.point, def_loc.point)
|
self.assertEqual(loc.point, def_loc.point)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue