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:34:23 +0100 |
| commit | 737b184d914d5cc4a6ed8fe2a1d66ec1b7369f46 (patch) | |
| tree | a87ccaa935d6ae386959cbbf862becde842a4024 /docs | |
| parent | 20eb51ce0ddcb8d5fdc772fc2839fefef5b28c2a (diff) | |
Improved nested ArrayField example
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 |
