yourlabs / django-autocomplete-light

A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
https://django-autocomplete-light.readthedocs.io
MIT License
1.8k stars 467 forks source link

Fix - Object of type ValidationError is not JSON serializable #1368

Open Spawin opened 3 months ago

Spawin commented 3 months ago

On Creation of new choices in the autocomplete form, when we use validate_create=True and the validation failed we have TypeError: Object of type ValidationError is not JSON serializable.

Corrections made :

Versions used:

Spawin commented 2 months ago

Please i need review here