Skip to content

Commit

Permalink
[1.9.x] Fixed quotes in GeoQuerySet aggregates examples.
Browse files Browse the repository at this point in the history
Backport of 92c1ae1 from master
  • Loading branch information
sir-sigurd authored and charettes committed Oct 14, 2015
1 parent 33c6a8b commit aa0a3b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/contrib/gis/geoquerysets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ comprising the lower left coordinate and the upper right coordinate.
Example::

>>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(Extent('poly'))
>>> print(qs[poly__extent])
>>> print(qs['poly__extent'])
(-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820)

``Extent3D``
Expand All @@ -1349,7 +1349,7 @@ and z coordinates).
Example::

>>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(Extent3D('poly'))
>>> print(qs[poly__extent3d])
>>> print(qs['poly__extent3d'])
(-96.8016128540039, 29.7633724212646, 0, -95.3631439208984, 32.782058715820, 0)

``MakeLine``
Expand All @@ -1365,7 +1365,7 @@ Returns a ``LineString`` constructed from the point field geometries in the
Example::

>>> print(City.objects.filter(name__in=('Houston', 'Dallas')
... ).aggregate(MakeLine('poly'))[poly__makeline]
... ).aggregate(MakeLine('poly'))['poly__makeline']
LINESTRING (-95.3631510000000020 29.7633739999999989, -96.8016109999999941 32.7820570000000018)

``Union``
Expand Down

0 comments on commit aa0a3b6

Please sign in to comment.