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

TypeError: Object of type ULID is not JSON serializable #151

Open
elnygren opened this issue Sep 7, 2023 · 1 comment
Open

TypeError: Object of type ULID is not JSON serializable #151

elnygren opened this issue Sep 7, 2023 · 1 comment

Comments

@elnygren
Copy link

elnygren commented Sep 7, 2023

...is a common error when using this with Django and various libraries like grappelli, allauth, .... because Python nor Django can JSON serialise your custom ULID types.

ahawker/ulid#492

@tpotjj
Copy link

tpotjj commented Apr 10, 2024

You can use the str() method to cast it to a string if that helps

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