1
0
mirror of https://github.com/django/django.git synced 2025-03-25 08:40:45 +00:00

[1.6.x] Made an aggregate test pass with spatialite backend

backends.tests.SqliteAggregationTests was failing with spatialite.

Backport of 550b6195ed from master
This commit is contained in:
Claude Paroz 2013-07-09 19:44:57 +02:00 committed by Tim Graham
parent 4c358df66a
commit 3a736c1836

View File

@ -169,6 +169,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
Checks if the given aggregate name is supported (that is, if it's Checks if the given aggregate name is supported (that is, if it's
in `self.valid_aggregates`). in `self.valid_aggregates`).
""" """
super(SpatiaLiteOperations, self).check_aggregate_support(aggregate)
agg_name = aggregate.__class__.__name__ agg_name = aggregate.__class__.__name__
return agg_name in self.valid_aggregates return agg_name in self.valid_aggregates