From 6bc9283751d51cab474d1bf6883a3b40cce32d4b Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 10 Jun 2020 20:56:18 +0100 Subject: [PATCH] Adjusted model definition in GeoDjango tutorial. The example uses the world border data set, where one of the entries has a null field value. --- 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 d69f5a7c7c..c585dd9248 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -203,7 +203,7 @@ model to represent this data:: name = models.CharField(max_length=50) area = models.IntegerField() pop2005 = models.IntegerField('Population 2005') - fips = models.CharField('FIPS Code', max_length=2) + fips = models.CharField('FIPS Code', max_length=2, null=True) iso2 = models.CharField('2 Digit ISO', max_length=2) iso3 = models.CharField('3 Digit ISO', max_length=3) un = models.IntegerField('United Nations Code')