Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Broken with latest version of django-jsonfield (again) #243

Open
AgDude opened this issue Oct 4, 2019 · 1 comment
Open

Broken with latest version of django-jsonfield (again) #243

AgDude opened this issue Oct 4, 2019 · 1 comment

Comments

@AgDude
Copy link

AgDude commented Oct 4, 2019

django-jsonfield 1.3.1 seems to break this. We have an existing database with switches, a new install with the updated jsonfield seems to break it.

switch = Switch.objects.first()
type(switch.value)
unicode

The database is postgres.

After locking django-jsonfield at 1.2.0 the type of switch.value is back to a dict as expected.

@adamchainz
Copy link
Owner

Hey @AgDude - my basic testing on django-jsonfield didn't find any problems. Can you try installing the in-between version 1.3.0 and seeing if that fixed it? There haven't been many changes in the 1.3.x series: https://github.com/adamchainz/django-jsonfield/commits/master . Once you've had a look you might even be half way to a fix...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants