Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ArrayField in Django

from django.db import models
from django.contrib.postgres.fields import ArrayField

class ChessBoard(models.Model):
    board = ArrayField(
        ArrayField(
            models.CharField(max_length=10, blank=True),
            size=8,
        ),
        size=8,
    )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ArrayField #Django
ADD COMMENT
Topic
Name
5+7 =