diff options
| author | David Smith <smithdc@gmail.com> | 2020-06-10 20:56:18 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2020-06-17 20:17:42 +0200 |
| commit | f22f660a33f507d3a3b3aa2bff7734df1dfea6f8 (patch) | |
| tree | 2c722f0d518a0b67590cae26b93418bccb6e68e3 | |
| parent | 0afe8ba2d6712f3766f1ef11bbd14734cb3b2d2a (diff) | |
[3.0.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
| -rw-r--r-- | docs/ref/contrib/gis/tutorial.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index 8cf95622f4..39d2b67879 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') |
