diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-10-11 16:56:48 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-10-11 16:56:48 +0200 |
| commit | 63ff4177467fbcceedf9c87e9cab4ae31a4ce119 (patch) | |
| tree | e8c2fc20de1dd86d53dadb7b160a9ea1d6b95005 | |
| parent | c6ea678c2e5fef985df933b6fd472b425476e6be (diff) | |
Fixed a tuple/int comparison in spatialite backend
On Python 3, comparing tuple with int raises a TypeError.
| -rw-r--r-- | django/contrib/gis/db/backends/spatialite/operations.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'} |
