mirror of
https://github.com/django/django.git
synced 2024-12-25 10:35:48 +00:00
[1.8.x] Improved nested ArrayField example
Backport of 737b184d91
from master
This commit is contained in:
parent
2a55301f9f
commit
f5749252ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user