Adjusted model definition in GeoDjango tutorial.

The example uses the world border data set, where
one of the entries has a null field value.
This commit is contained in:
David Smith 2020-06-10 20:56:18 +01:00 committed by Carlton Gibson
parent 10df5b7177
commit 6bc9283751
1 changed files with 1 additions and 1 deletions

View File

@ -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')