derek-schaefer / django-json-field

Generic JSON model and form fields.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible with Django 1.5 due to change from simplejson to json

jeffbowen opened this issue · comments

django-json-field is incompatible with Django 1.5 due to the switch from simplejson to json. This results in the following error:

TypeError: __init__() got an unexpected keyword argument 'namedtuple_as_object'

I'm not yet familiar enough with django-json-field to know what the right fix is but I'm looking into it. Would love some help from someone with a better understanding.

Thanks for the heads up, I'll look into this as well. Haven't done any testing with the 1.5 RC's yet.

One test fails when run under 1.5 RC2 but is otherwise OK. The TypeError only occurs if simplejson has been installed but should be a simple fix. I should be able to fix those problems tomorrow.

Awesome. Thanks @derek-schaefer! For now I just uninstalled simplejson and it's working fine.

So I fixed this issue about a week ago but a test still fails under Django 1.5 without simplejson installed. It seems that Decimals are being handled differently. In any case, no more errors here!