Fixed a tuple/int comparison in spatialite backend

On Python 3, comparing tuple with int raises a TypeError.
This commit is contained in:
Claude Paroz 2014-10-11 16:56:48 +02:00
parent c6ea678c2e
commit 63ff417746
1 changed files with 1 additions and 1 deletions

View File

@ -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'}