﻿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
26672	forms.HStoreField crashes on an empty JSON array	Brad Melin	Brad Melin	"Problem: Submitting a JSON array (`[]`) into the default Django admin form for HStoreField (`django.contrib.postgres.fields.HStoreField`) throws an error. 

There is some incorrect logic with the validation where if anything but a dict is passed to the to_python method, the field tries to json.load() the data and then iterate over it with value.items(). Lists don't implement this method, and so we an AttibuteError is raised.

**To reproduce**: 

* Add an HStoreField to a model, and register that model with Django Admin.
* In the model admin edit view, insert a list into the textfield
* Submit.

Traceback: https://dpaste.de/bjUh"	Bug	closed	contrib.postgres	1.9	Release blocker	fixed			Accepted	1	0	0	0	1	0
