mirror of https://github.com/django/django.git
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
|
||||
def valid_aggregates(self):
|
||||
if self.spatial_version >= 3:
|
||||
if self.spatial_version >= (3, 0, 0):
|
||||
return {'Collect', 'Extent', 'Union'}
|
||||
else:
|
||||
return {'Union'}
|
||||
|
|
Loading…
Reference in New Issue