mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fixed a tuple/int comparison in spatialite backend
On Python 3, comparing tuple with int raises a TypeError.
This commit is contained in:
parent
c6ea678c2e
commit
63ff417746
@ -21,7 +21,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def valid_aggregates(self):
|
def valid_aggregates(self):
|
||||||
if self.spatial_version >= 3:
|
if self.spatial_version >= (3, 0, 0):
|
||||||
return {'Collect', 'Extent', 'Union'}
|
return {'Collect', 'Extent', 'Union'}
|
||||||
else:
|
else:
|
||||||
return {'Union'}
|
return {'Union'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user