Ticket #33974: models.py

File models.py, 253 bytes (added by Arthur Hanson, 2 years ago)

example model file with arrayfield

Line 
1from django.db import models
2
3# Create your models here.
4from django.contrib.postgres.fields import ArrayField
5from django.db import models
6
7class Board(models.Model):
8 pieces = ArrayField(
9 base_field=models.PositiveSmallIntegerField()
10 )
Back to Top