﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35454	ArrayField with default throwing a ValidationError on full_clean	hfroot	nobody	"I am attempting to add an ArrayField of IntegerFields to my model with a default value of list. I would expect the field to be populated with an empty list when the object is created, but when I call full_clean a ValidationError is thrown.

```
my_array_field = ArrayField(base_field=models.IntegerField(), default=list)
...
obj = MyObject.objects.create()
obj.full_clean()
```

The error I'm seeing is that the field cannot be empty:

```
django.core.exceptions.ValidationError: {'my_array_field': ['Ce champ ne peut pas être vide.']}
```

I saw this ticket : https://forum.djangoproject.com/t/fields-with-db-default-fail-on-full-clean/28153 so I attempted to use `db_default=list()` and `db_default=[]` alone and in conjunction with `default` but none of it seems to work.

Is this a bug? Am I just defining the default wrong? 

I can't see an example of defining the default in the docs, although it does mention it : https://docs.djangoproject.com/en/5.0/ref/contrib/postgres/fields/#django.contrib.postgres.fields.ArrayField.base_field

I'm on Django 5.0.3"	Uncategorized	closed	Database layer (models, ORM)	5.0	Normal	invalid	full_clean, ArrayField, ValidationError		Unreviewed	0	0	0	0	0	0
