mirror of
https://github.com/django/django.git
synced 2025-03-14 03:10:45 +00:00
[1.6.x] Removed unnecessary order_by() from a GIS test that crashed Oracle.
Oracle cannot order_by() a TextField; refs #23504. Backport of 7fc13178d6 from master
This commit is contained in:
parent
59d369db78
commit
8cee5875a6
@ -291,7 +291,7 @@ class LayerMapTest(TestCase):
|
||||
lm = LayerMapping(City, city_shp, mapping)
|
||||
lm.save(silent=True, strict=True)
|
||||
self.assertEqual(City.objects.count(), 3)
|
||||
self.assertEqual(City.objects.all().order_by('name_txt')[0].name_txt, "Houston")
|
||||
self.assertEqual(City.objects.get(name='Houston').name_txt, "Houston")
|
||||
|
||||
def test_encoded_name(self):
|
||||
""" Test a layer containing utf-8-encoded name """
|
||||
|
Loading…
x
Reference in New Issue
Block a user