django-smart-selects icon indicating copy to clipboard operation
django-smart-selects copied to clipboard

BugFix when ID is a UUID

Open rhenter opened this issue 4 years ago • 2 comments

I had a JSON Encode Serialize error when I use a Model with ID as UUID.

    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type UUID is not JSON serializable

rhenter avatar Aug 31 '20 17:08 rhenter

I'll create a test to don't decrease the coverage

rhenter avatar Aug 31 '20 20:08 rhenter

Hi @rhenter, this LGTM, can you please add an example to the test_app using the UUID, it would help a lot to test your changes.

manelclos avatar Jan 29 '21 15:01 manelclos