ahawker / django-ulid

Universally Unique Lexicographically Sortable Identifier (ULID) support in Django
Apache License 2.0
42 stars 12 forks source link

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

Open elnygren opened 1 year ago

elnygren commented 1 year ago

...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.

https://github.com/ahawker/ulid/issues/492

tpotjj commented 6 months ago

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