diff options
| author | Tim Graham <timograham@gmail.com> | 2019-02-07 19:10:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-08 14:08:05 -0500 |
| commit | e7fd69d051eaa67cb17f172a39b57253e9cb831a (patch) | |
| tree | 7960b600c1fec82ce32532778f23bb2fb8924cde /tests/gis_tests/inspectapp | |
| parent | 6eb4996672ca5ccaba20e468d91a83d1cd019801 (diff) | |
| download | django-e7fd69d051eaa67cb17f172a39b57253e9cb831a.tar.gz | |
Fixed #30166 -- Dropped support for GDAL 1.11.
Diffstat (limited to 'tests/gis_tests/inspectapp')
| -rw-r--r-- | tests/gis_tests/inspectapp/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gis_tests/inspectapp/tests.py b/tests/gis_tests/inspectapp/tests.py index 431818ebfd..35fedf8eb6 100644 --- a/tests/gis_tests/inspectapp/tests.py +++ b/tests/gis_tests/inspectapp/tests.py @@ -74,7 +74,7 @@ class OGRInspectTest(SimpleTestCase): '', 'class MyModel(models.Model):', ' float = models.FloatField()', - ' int = models.{}()'.format('BigIntegerField' if GDAL_VERSION >= (2, 0) else 'FloatField'), + ' int = models.BigIntegerField()', ' str = models.CharField(max_length=80)', ' geom = models.PolygonField(%s)' % self.expected_srid, ] @@ -102,7 +102,7 @@ class OGRInspectTest(SimpleTestCase): '', 'class City(models.Model):', ' name = models.CharField(max_length=80)', - ' population = models.{}()'.format('BigIntegerField' if GDAL_VERSION >= (2, 0) else 'FloatField'), + ' population = models.BigIntegerField()', ' density = models.FloatField()', ' created = models.DateField()', ' geom = models.PointField(%s)' % self.expected_srid, |
