diff options
| author | David Smith <smithdc@gmail.com> | 2020-06-10 20:56:18 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-06-17 20:09:19 +0200 |
| commit | 6bc9283751d51cab474d1bf6883a3b40cce32d4b (patch) | |
| tree | ed32005ce753246c351640774ad896759e41f607 /docs/ref/contrib/gis/tutorial.txt | |
| parent | 10df5b71775d8ee98201acb1367266521b17cc00 (diff) | |
Adjusted model definition in GeoDjango tutorial.
The example uses the world border data set, where
one of the entries has a null field value.
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
| -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 d69f5a7c7c..c585dd9248 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') |
