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:11:20 +0200 |
| commit | 58f7d7c9fd8540de44cc85deee62569311fe6a61 (patch) | |
| tree | 54ea44e6a69133f44c8e08e0774f28922141827d /docs | |
| parent | 9b95c3bc090ed01b8e46aca14964e23d5b6469f7 (diff) | |
[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
Diffstat (limited to 'docs')
| -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 233ac1e8e7..2de931e28d 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') |
