diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2015-10-13 23:07:53 +0500 |
---|---|---|
committer | Simon Charette <charette.s@gmail.com> | 2015-10-13 23:41:22 -0400 |
commit | 4171d208f4ae79747aa05d255a286ad0a362b9ff (patch) | |
tree | 317111aa276c8c9496bce22a4e9005e9fc6187a6 | |
parent | eb85e6672aeb00c67a3666785965edeceed976af (diff) | |
download | django-4171d208f4ae79747aa05d255a286ad0a362b9ff.tar.gz |
[1.8.x] Fixed quotes in GeoQuerySet aggregates examples.
Backport of 92c1ae1b0b9955a511c19e07921c10126b6faa54 from master
-rw-r--r-- | docs/ref/contrib/gis/geoquerysets.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index 129f384240..b9c386268d 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -1198,7 +1198,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`` @@ -1215,7 +1215,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`` @@ -1231,7 +1231,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`` |