Removed GeoQuerySet leftovers.

Follow up to a0d166306f.
This commit is contained in:
Sergey Fedoseev 2017-03-16 18:38:02 +05:00 committed by Tim Graham
parent 6bc4ff36db
commit 1bf5e79394
5 changed files with 13 additions and 104 deletions

View file

@ -24,7 +24,7 @@ class GISFunctionsTests(TestCase):
def test_asgeojson(self):
# Only PostGIS and SpatiaLite support GeoJSON.
if not connection.ops.geojson:
if not connection.features.has_AsGeoJSON_function:
with self.assertRaises(NotImplementedError):
list(Country.objects.annotate(json=functions.AsGeoJSON('mpoly')))
return