mirror of
https://github.com/django/django.git
synced 2025-04-22 00:04:43 +00:00
[3.1.x] Adjusted model definition in GeoDjango tutorial.
The example uses the world border data set, where one of the entries has a null field value. Backport of 6bc9283751d51cab474d1bf6883a3b40cce32d4b from master
This commit is contained in:
parent
9b95c3bc09
commit
58f7d7c9fd
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user