mirror of https://github.com/django/django.git
Improved nested ArrayField example
This commit is contained in:
parent
20eb51ce0d
commit
737b184d91
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue