diff --git a/django/contrib/gis/db/backends/spatialite/operations.py b/django/contrib/gis/db/backends/spatialite/operations.py index d95b2f6a13..d7a4912fbe 100644 --- a/django/contrib/gis/db/backends/spatialite/operations.py +++ b/django/contrib/gis/db/backends/spatialite/operations.py @@ -21,7 +21,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations): @property def valid_aggregates(self): - if self.spatial_version >= 3: + if self.spatial_version >= (3, 0, 0): return {'Collect', 'Extent', 'Union'} else: return {'Union'}