diff --git a/django/contrib/gis/db/models/sql/query.py b/django/contrib/gis/db/models/sql/query.py
index 5df15a8..4bca354 100644
a
|
b
|
class GeoQuery(sql.Query):
|
223 | 223 | # the `geo_values` attribute is defined. |
224 | 224 | for value, field in izip(row[index_start:], fields): |
225 | 225 | values.append(self.convert_values(value, field)) |
| 226 | # We need to append the aggregates (at the end of row) |
| 227 | values.extend(row[-len(self.aggregates):]) |
226 | 228 | else: |
227 | 229 | values.extend(row[index_start:]) |
228 | 230 | return tuple(values) |