Commit 63ff4177 authored by Claude Paroz's avatar Claude Paroz
Browse files

Fixed a tuple/int comparison in spatialite backend

On Python 3, comparing tuple with int raises a TypeError.
parent c6ea678c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'}