From e46ca51c249677c52e04db28fc0c60ae1948b3b2 Mon Sep 17 00:00:00 2001 From: Neil Lyons Date: Fri, 27 Nov 2020 05:57:20 +0000 Subject: [PATCH] Refs #32230 -- Fixed DataSource example in GeoDjango tutorial. DataSource.ds_input doesn't support pathlib.Path(). Regression in 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8. --- docs/ref/contrib/gis/tutorial.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index c585dd9248..2f80a18e47 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -331,7 +331,7 @@ Now, open the world borders shapefile using GeoDjango's :class:`~django.contrib.gis.gdal.DataSource` interface:: >>> from django.contrib.gis.gdal import DataSource - >>> ds = DataSource(world_shp) + >>> ds = DataSource(str(world_shp)) >>> print(ds) / ... /geodjango/world/data/TM_WORLD_BORDERS-0.3.shp (ESRI Shapefile)