djangonauts / django-hstore

PostgreSQL HStore support for Django.
http://django-hstore.readthedocs.io/
Other
517 stars 142 forks source link

for some reason the second create() fails (using model with slug PK) #112

Closed stringfellow closed 9 years ago

stringfellow commented 9 years ago

Opened to expose issue (#111) Not sure what's going on here; the create() call with a model that uses a slug for a primary key has issues with the dictionary...

landscape-bot commented 9 years ago

Code Health Code quality remained the same when pulling 49067d4 on stringfellow:bug/create-with-dict into d9a3c32 on djangonauts:master.

nemesifier commented 9 years ago

It's clearly a bug. Have a proposed resolution?

stringfellow commented 9 years ago

Not as yet... sorry, I haven't had time to look at it. A workaround is to create the object with an empty data dict and then add the values per key (i.e. x.data['mykey'] = someval), but isn't ideal

landscape-bot commented 9 years ago

Code Health Repository health decreased by 0.09% when pulling 49067d4 on stringfellow:bug/create-with-dict into 4c500a8 on djangonauts:master.

nemesifier commented 9 years ago

@stringfellow should be fixed