Open NMagpie opened 1 year ago
Not working as expected
from djongo import models
from geocoding_api.API.mixins import TimestampMixin
class Geocoding(TimestampMixin):
searchAddresses = models.fields.FieldsArrayField(models.CharField(max_length=255))
Which give
ValueError('You must specify a base_field')
The FieldsArrayField is a custom Django model field that allows you to create an array of fields inside a document. You can specify a base field when you create an instance of FieldsArrayField, and then use the resulting field like a regular Python list.
We can instanciate such model just using python list: