Describe the issue
Generating random data is not working below the condition.
ArrayField with default=list
FileField with default=None
To Reproduce
class A(models.Model):
career = ArrayField(models.CharField(max_length=30), default=list)
main_image = models.ImageField(blank=True, null=True, default=None)
a = baker.make(A, _fill_optional=True, _create_files=True)
print(a.career, a.main_image)
[], None
Expected behavior
ArrayField and FileField should be filled with random data.
Versions
- Python: 3.10.3
- Django: 4.1.2
- Model Bakery: 1.8.0