1 from django.db import models, FloatField
2 from django.contrib.postgres.fields import ArrayField
3
4 class Book(models.Model):
5 ratings = ArrayField(FloatField())
1from django.contrib.postgres.fields import ArrayField
2from django.db import models
3
4class ChessBoard(models.Model):
5 board = ArrayField(
6 ArrayField(
7 models.CharField(max_length=10, blank=True),
8 size=8,
9 ),
10 size=8,
11 )