mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
parent
6bc4ff36db
commit
1bf5e79394
5 changed files with 13 additions and 104 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue