diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-05 19:05:03 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-05 19:07:51 +0200 |
| commit | 22916c8c1f9648931344c7f77fe9f71069dc5765 (patch) | |
| tree | 4fbfd2ecbb9f0a93b1a750e726d26d42e0567559 | |
| parent | e1cfbe58b76bb115db299f697e42e05d5c7979c9 (diff) | |
[3.2.x] Fixed RelatedGeoModelTest.test08_defer_only() on MySQL 8+ with MyISAM storage engine.
Backport of 73766c118781a7f7052bf0a5fbee38b944964e31 from main.
| -rw-r--r-- | tests/gis_tests/relatedapp/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/relatedapp/tests.py b/tests/gis_tests/relatedapp/tests.py index b834e13d48..9668f51222 100644 --- a/tests/gis_tests/relatedapp/tests.py +++ b/tests/gis_tests/relatedapp/tests.py @@ -189,8 +189,8 @@ class RelatedGeoModelTest(TestCase): def test08_defer_only(self): "Testing defer() and only() on Geographic models." - qs = Location.objects.all() - def_qs = Location.objects.defer('point') + qs = Location.objects.all().order_by("pk") + def_qs = Location.objects.defer("point").order_by("pk") for loc, def_loc in zip(qs, def_qs): self.assertEqual(loc.point, def_loc.point) |
