Commit 6c1b55d6 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Re-expose Count here

parent 881851f3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
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)'