mirror of https://github.com/django/django.git
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:
parent
10df5b7177
commit
6bc9283751
|
@ -203,7 +203,7 @@ model to represent this data::
|
||||||
name = models.CharField(max_length=50)
|
name = models.CharField(max_length=50)
|
||||||
area = models.IntegerField()
|
area = models.IntegerField()
|
||||||
pop2005 = models.IntegerField('Population 2005')
|
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)
|
iso2 = models.CharField('2 Digit ISO', max_length=2)
|
||||||
iso3 = models.CharField('3 Digit ISO', max_length=3)
|
iso3 = models.CharField('3 Digit ISO', max_length=3)
|
||||||
un = models.IntegerField('United Nations Code')
|
un = models.IntegerField('United Nations Code')
|
||||||
|
|
Loading…
Reference in New Issue