📜  arrayfield django 示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:24.353000             🧑  作者: Mango

代码示例2
from django.contrib.postgres.fields import ArrayField
from django.db import models

class ChessBoard(models.Model):
    board = ArrayField(
        ArrayField(
            models.CharField(max_length=10, blank=True),
            size=8,
        ),
        size=8,
    )