1
0
mirror of https://github.com/django/django.git synced 2025-06-06 12:09:11 +00:00

[1.8.x] Improved nested ArrayField example

Backport of 737b184d914d5cc4a6ed8fe2a1d66ec1b7369f46 from master
This commit is contained in:
Tom Christie 2015-02-05 09:09:13 +00:00 committed by Markus Holtermann
parent 2a55301f9f
commit f5749252ea

View File

@ -40,9 +40,11 @@ ArrayField
class ChessBoard(models.Model): class ChessBoard(models.Model):
board = ArrayField( board = ArrayField(
ArrayField( ArrayField(
CharField(max_length=10, blank=True, null=True), models.CharField(max_length=10, blank=True),
size=8), size=8,
size=8) ),
size=8,
)
Transformation of values between the database and the model, validation Transformation of values between the database and the model, validation
of data and configuration, and serialization are all delegated to the of data and configuration, and serialization are all delegated to the