﻿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
28406	bug with HStore that has a default value of empty dict - {}	Eyal Elkevity	nobody	"using django version 1.11.2 I have in one of my models an HStoreField. I've defined this field with ""default={}"" in the model definition, so when creating a new object (using objects.create) - the new hstore field will be an empty dictionary.

however - there is a weird bug, If I create a first object, it is created with an empty dict indeed. but when creating another object, instead of an empty dictionary - it is loaded with the dictionary of the previous, non-related object!!. I'm not sure where's the problem in django's code but maybe it's related to models/base.py, in line 518 there's a ""if kwargs"" which returns false in the case of the empty dict that is my default. maybe it should return something?

my workaround was simple of course - stop using the default value. just wanted to let you know..."	Bug	closed	Database layer (models, ORM)	1.11	Normal	invalid	hstore	Craig de Stigter	Unreviewed	0	0	0	0	0	0
