1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34684 -- Dropped support for GDAL 2.2 and 2.3.

This commit is contained in:
Mariusz Felisiak
2023-06-29 09:11:30 +02:00
committed by GitHub
parent 7af455a402
commit 6a523500af
4 changed files with 10 additions and 12 deletions

View File

@@ -89,8 +89,7 @@ class OGRInspectTest(SimpleTestCase):
# Same test with a 25D-type geometry field
shp_file = os.path.join(TEST_DATA, "gas_lines", "gas_leitung.shp")
model_def = ogrinspect(shp_file, "MyModel", multi_geom=True)
srid = "-1" if GDAL_VERSION < (2, 3) else "31253"
self.assertIn("geom = models.MultiLineStringField(srid=%s)" % srid, model_def)
self.assertIn("geom = models.MultiLineStringField(srid=31253)", model_def)
def test_date_field(self):
shp_file = os.path.join(TEST_DATA, "cities", "cities.shp")