I have custom model
class customModel(models.Model):
contents = models.TextField(null=True)
and another customModel with ArrayField
from django.contrib.postgres.fields import ArrayField
class customModel2(models.Model):
ArrayField(customModel()):
but it raised errors AttributeError: 'customModel' object has no attribute 'set_attributes_from_name'
ArrayField(customModel) also raised similar errors.
What are the proper method to define an arrayfield with custom model as base field ?