Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering widget with UUID (JSON not serializable, TypeError) #211

Closed
kut opened this issue Sep 6, 2017 · 4 comments
Closed

Rendering widget with UUID (JSON not serializable, TypeError) #211

kut opened this issue Sep 6, 2017 · 4 comments

Comments

@kut
Copy link

kut commented Sep 6, 2017

If object PK is UUID, the function make_plugin_options tries to do json.dumps on a dict wth a UUID object inside, which is not JSON serializable.

We'd be able to get around this super simply if we set line 82 of fields.py to be:

initial = [current_repr, str(obj.pk)]

instead of:

initial = [current_repr, obj.pk]

Thoughts?

@kut
Copy link
Author

kut commented Sep 6, 2017

This issue should actually be fixed with PR #206, so no need. Any idea when this will be sent to master branch?

@crucialfelix
Copy link
Owner

crucialfelix commented Sep 6, 2017 via email

@kut
Copy link
Author

kut commented Sep 6, 2017

Thank you!

@crucialfelix
Copy link
Owner

Released ! (2 days late) Thanks !

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

No branches or pull requests

2 participants