mirror of https://github.com/django/django.git
Re-expose Count here
This commit is contained in:
parent
881851f3bb
commit
6c1b55d61a
|
@ -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
|
from django.contrib.gis.db.models.fields import GeometryField
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = ['Count', 'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union']
|
||||||
|
|
||||||
class GeoAggregate(Aggregate):
|
class GeoAggregate(Aggregate):
|
||||||
# Default SQL template for spatial aggregates.
|
# Default SQL template for spatial aggregates.
|
||||||
sql_template = '%(function)s(%(field)s)'
|
sql_template = '%(function)s(%(field)s)'
|
||||||
|
|
Loading…
Reference in New Issue