[Django]-Arrayfield in Django

4👍

In your case you are talking about 1-dim array, and it should be smth like that:

board = ArrayField(
    ArrayField(
        models.CharField(max_length=10, blank=True),
        size=8,
    ),
    size=1,
)

so in your case smth like:

pagerange_str_array = ArrayField(
    ArrayField(
        models.CharField(max_length=10, blank=True)
    ),
    size=1
)

Leave a comment