summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTom Christie <tom@tomchristie.com>2015-02-05 09:09:13 +0000
committerMarkus Holtermann <info@markusholtermann.eu>2015-02-05 11:34:23 +0100
commit737b184d914d5cc4a6ed8fe2a1d66ec1b7369f46 (patch)
treea87ccaa935d6ae386959cbbf862becde842a4024 /docs
parent20eb51ce0ddcb8d5fdc772fc2839fefef5b28c2a (diff)
Improved nested ArrayField example
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/postgres/fields.txt8
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