Loading django/contrib/gis/db/models/sql/aggregates.py +3 −2 Original line number Diff line number Diff line from django.db.models.sql.aggregates import Aggregate, Count from django.db.models.sql import aggregates from django.db.models.sql.aggregates import * # NOQA from django.contrib.gis.db.models.fields import GeometryField __all__ = ['Count', 'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'] __all__ = ['Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'] + aggregates.__all__ class GeoAggregate(Aggregate): Loading django/db/models/sql/aggregates.py +4 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,10 @@ import copy from django.db.models.fields import IntegerField, FloatField __all__ = ['Aggregate', 'Avg', 'Count', 'Max', 'Min', 'StdDev', 'Sum', 'Variance'] # Fake fields used to identify aggregate types in data-conversion operations. ordinal_aggregate_field = IntegerField() computed_aggregate_field = FloatField() Loading Loading
django/contrib/gis/db/models/sql/aggregates.py +3 −2 Original line number Diff line number Diff line from django.db.models.sql.aggregates import Aggregate, Count from django.db.models.sql import aggregates from django.db.models.sql.aggregates import * # NOQA from django.contrib.gis.db.models.fields import GeometryField __all__ = ['Count', 'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'] __all__ = ['Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'] + aggregates.__all__ class GeoAggregate(Aggregate): Loading
django/db/models/sql/aggregates.py +4 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,10 @@ import copy from django.db.models.fields import IntegerField, FloatField __all__ = ['Aggregate', 'Avg', 'Count', 'Max', 'Min', 'StdDev', 'Sum', 'Variance'] # Fake fields used to identify aggregate types in data-conversion operations. ordinal_aggregate_field = IntegerField() computed_aggregate_field = FloatField() Loading