diff options
| author | Tom Christie <tom@tomchristie.com> | 2015-02-05 09:09:13 +0000 |
|---|---|---|
| committer | Markus Holtermann <info@markusholtermann.eu> | 2015-02-05 11:35:23 +0100 |
| commit | f5749252eac68274b1e8f71b5e74c976199c360c (patch) | |
| tree | 64e74c6980279a617ce3bd037e90b7c58edde7c0 /docs | |
| parent | 2a55301f9fe1c3b62ad4e79c3109bec77b57b317 (diff) | |
[1.8.x] Improved nested ArrayField example
Backport of 737b184d914d5cc4a6ed8fe2a1d66ec1b7369f46 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/postgres/fields.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index a06cefd162..760286dcac 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -40,9 +40,11 @@ ArrayField class ChessBoard(models.Model): board = ArrayField( ArrayField( - CharField(max_length=10, blank=True, null=True), - size=8), - size=8) + models.CharField(max_length=10, blank=True), + size=8, + ), + size=8, + ) Transformation of values between the database and the model, validation of data and configuration, and serialization are all delegated to the |
