소스 검색

Refs #32230 -- Fixed DataSource example in GeoDjango tutorial.

DataSource.ds_input doesn't support pathlib.Path().

Regression in 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8.
Neil Lyons 4 년 전
부모
커밋
e46ca51c24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/ref/contrib/gis/tutorial.txt

+ 1 - 1
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)