summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-11-28 09:22:34 +0100
committerGitHub <noreply@github.com>2020-11-28 09:22:34 +0100
commit2ab8b5f4f8f645be153236af210e6d8edad69668 (patch)
treecfac5af796596b455002c7205856fcde4dadb439 /docs
parent3a70c362ec4c3150ee02ee139d6b58c203ae58c5 (diff)
[3.1.x] Refs #32230 -- Fixed LayerMapping example in GeoDjango tutorial.
LayerMapping.data_source doesn't support pathlib.Path(). Regression in 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8. Follow up to e46ca51c249677c52e04db28fc0c60ae1948b3b2.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/tutorial.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index 362743a500..5faf0103b1 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -453,7 +453,7 @@ with the following code::
world_shp = Path(__file__).resolve().parent / 'data' / 'TM_WORLD_BORDERS-0.3.shp'
def run(verbose=True):
- lm = LayerMapping(WorldBorder, world_shp, world_mapping, transform=False)
+ lm = LayerMapping(WorldBorder, str(world_shp), world_mapping, transform=False)
lm.save(strict=True, verbose=verbose)
A few notes about what's going on: