17👍
✅
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,)
4👍
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.
- How to make follower-following system with django model
- How do I check if a given datetime object is "between" two datetimes?
- Issue with Django 2.0 : 'WSGIRequest' object has no attribute 'session'
- Django OneToOneField default value
Source:stackexchange.com