﻿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
27003	ArrayField and JSONField form fields fail on already converted values	Brandon Chinn		"If I make a model `Foo` with the PostgreSQL `ArrayField`,

{{{
class Foo(models.Model):
    bar = ArrayField(models.CharField(...))
}}}

And create a `ModelForm`:

{{{
FooForm = modelform_factory(Foo, excludes=[])
}}}

The field will fail with already-converted values, like

{{{
foo = Foo.objects.create(bar=['a', 'b'])
data = model_to_dict(foo) # {'bar': ['a', 'b']}
form = FooForm(instance=foo, data=data)
form.full_clean() # errors at django/contrib/postgres/forms/array.py:39
}}}

Shouldn't already converted values be checked in the `to_python` method of `ArrayField`? (Same with `JSONField`)"	Bug	closed	Forms	dev	Normal	fixed	postgres, arrayfield	emad.m.habib@…	Ready for checkin	1	0	0	0	1	0
