Re-expose Count here

This commit is contained in:
Alex Gaynor 2013-11-03 01:52:40 -07:00
parent 881851f3bb
commit 6c1b55d61a
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
from django.db.models.sql.aggregates import Aggregate
from django.db.models.sql.aggregates import Aggregate, Count
from django.contrib.gis.db.models.fields import GeometryField
__all__ = ['Count', 'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union']
class GeoAggregate(Aggregate):
# Default SQL template for spatial aggregates.
sql_template = '%(function)s(%(field)s)'