mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Removed GeoManager and GeoQuerySet per deprecation timeline.
This commit is contained in:
@@ -19,7 +19,6 @@ from .models import City, Country, CountryWebMercator, State, Track
|
||||
class GISFunctionsTests(TestCase):
|
||||
"""
|
||||
Testing functions from django/contrib/gis/db/models/functions.py.
|
||||
Several tests are taken and adapted from GeoQuerySetTest.
|
||||
Area/Distance/Length/Perimeter are tested in distapp/tests.
|
||||
|
||||
Please keep the tests in function's alphabetic order.
|
||||
@@ -462,7 +461,6 @@ class GISFunctionsTests(TestCase):
|
||||
"has_Difference_function", "has_Intersection_function",
|
||||
"has_SymDifference_function", "has_Union_function")
|
||||
def test_diff_intersection_union(self):
|
||||
"Testing the `difference`, `intersection`, `sym_difference`, and `union` GeoQuerySet methods."
|
||||
geom = Point(5, 23, srid=4326)
|
||||
qs = Country.objects.all().annotate(
|
||||
difference=functions.Difference('mpoly', geom),
|
||||
|
||||
Reference in New Issue
Block a user