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 28291,ArrayField cannot contain JSONField; causes SQL error,Richard Eames,vinay karanam,"Using `JSONField` as the subfield of `ArrayField` causes an error with casting: {{{ psycopg2.ProgrammingError: column ""field"" is of type jsonb[] but expression is of type text[] LINE 1: ...""postgres_tests_jsonarraymodel"" (""field"") VALUES (ARRAY['{""a... }}} Testcase: {{{ #!python class JSONArrayModel(PostgreSQLModel): field = ArrayField(JSONField(default=dict)) instance = JSONArrayModel(field=[{'a': 1 }, {'b': 2}]) instance.save() }}}",Bug,closed,contrib.postgres,dev,Normal,fixed,,David Hagen,Accepted,0,0,0,0,0,0