[Fixed]-ArrayField missing 1 required positional argument


As per the docs

You still need to fully define the field inside the array field

question_array = ArrayField(models.IntegerField(null=True, blank=True), blank=True,)


models.IntegerField is a function not a property, so you will be required to call it like a function. () at the end

question_array = ArrayField(models.IntegerField(blank=True), blank=True,)

Read more about it here.

Leave a comment